The county attorney, or district attorney, or criminal district attorney, as appropriate, with the duty to represent the county in civil matters shall represent the commission in all legal matters.