Where the state or county may be a party in a civil action, the prosecuting attorney may prosecute or defend.

This includes pleadings, answers, interrogatories, depositions, motions, negotiations, trial and appeal.