. . . "The attorney general shall represent the department in an action to which the department is a party." .