The doctrine is well stated in 2 C.J. 913, section 627: "In an action on a contract the authority of the agent to make the contract is admitted where the answer admits the making of a contract but avers that it was upon a different compensation from that alleged in the complaint, or where the answer admits the contract but alleged terms materially different from the contract set out in the complaint." This doctrine has been adopted by this court in Miller v. Yellowstone Irr. Dist., 91 Mont. 538, 9 P.2d 795, where the proof showed employment, though a different contract was claimed by defendant. (See, also, Hamil v. Baumhover, 110 Iowa, 369, 81 N.W. 600.) It is believed that the allegations and evidence advanced in this action come substantially within this rule and that it is decisive of the question.