A third class city may retain the county attorney to provide legal services for the city in cases not involving a conflict between the interests of the city and the county, either by an interlocal cooperation agreement or by mutual consent by the governing bodies of the city and county.
§ 7-4-4606, MCA