This action was brought in the county court of Douglas county by the defendants in error against the plaintiff in error to recover for services alleged to have been rendered to the plaintiff in error as real estate agents in effecting sales of a large amount of real estate, descriptions of which are set out in the petition.
The answer of the defendant was a general denial.
On the trial of the cause in the county court judgment was rendered in favor of the defendants in error. The plaintiff in error then appealed to the district court, where substantially the same petition and the same answer were filed as in the county court. Afterwards the attorneys for *789the plaintiff in error filed an amended answer, in which, after denying certain matters stated in the petition, they admitted the service rendered by the defendants in error but alleged that they were to take their pay in wild land at a certain price per acre. This answer was stricken from the files because it did not set up the same defense as was presented in the county court. The new matter set up in the answer of the plaintiff in error is substantially as follows:
“ Defendant denies that he is indebted to the plaintiff, in the sums set forth in their petition, or in any sum or sums whatever, but alleges that when the various lands in plaintiffs’ petition described for trade as aforesaid it was agreed by the defendant that plaintiffs, for their services in trading said lands, should have by assignment of contract so much of the lands of defendant remaining untraded as should at their ti’ade valuation equal in value five per cent of the first thousand and two and one-half per cent of the remainder of the trade valuation of the land so traded, the said plaintiffs to select said amount of land from such as might remain untraded as aforesaid.
“ Defendant has always been ready and willing, and now is ready and willing, to transfer as aforesaid to plaintiffs the amount of land to which said plaintiffs are entitled for the lands by them traded at any time when same shall be selected by the said plaintiffs.”
In O’Leary v. Iskey, 12 Neb., 136, it was held that when an appeal was taken from the county court to the district court the case was to be tried in the appellate court upon the issues that were presented in the court from which the appeal was taken, with the exception that matter arising after the trial, such as payment, compromise, release, etc., may be pleaded as a defense to the action. It is said (p. 137): “Aset-off arising before the commencement of the action, to be available in the appellate court, must have been presented to the court below for its adjudication. *790The reason is, an appeal, when a bond is given as in this case, has the effect to vacate the judgment of the court below, and presents the same issue to the appellate court for its determination as was presented in the court below. If new issues can be raised in the appellate court it is not a trial of the same cause, not in fact an appeal. An appeal brings up the case presented in the court below for a new trial, and the issues cannot be changed in the appellate court except by consent, or in the manner above suggested. Cases are to be tried on their merits; then if either party is dissatisfied with the judgmen the may appeal.”
This case was approved in Sawyer v. Brown, 17 Neb., 171, and U. P. Ry. v. Ogilvy, 18 Id., 638; Fuller v. Schroeder, 20 Id., 636, and Sells v. Haggard, 21 Id., 360, and other cases.
This is a reasonable rule. The design is to encourage trials of cases upon the merits. If a party can withhold his defense in the inferior court, allow judgment to be rendered against him, and make his defense for the first time in the appellate court, the latter courts will be' burdened with business, while great injustice will be done to litigants who had brought their actions before the inferior tribunals. A trial in a county court or before a justice of the peace probably will result in a correct judgment being rendered; and that this is true in an eminent degree, is shown by the comparatively small number of appeals taken from such judgments. In any event a party must present his defense and if the judgment is not satisfactory to him he may appeal the case submitted to the inferior tribunal to the district court, where he will be confined to the same issues as were presented in the inferior court.
Second — It is contended with great earnestness that evidence in support of the answer is admissible under a general denial.
The question here presented was before this court in the case of A. & N. R. R. Co. v. Washburn, 5 Neb., 117, and *791it was held that all new matter constituting an entire or partial defense to a cause of action, must be concisely and distinctly set up in the answer and is not admissible under a general denial. The opinion in that case was written by Judge Gantt, who says (page 125):
“In McKyring v. Bull, 16 N. Y., 308, this question is very elaborately and ably discussed, and it is held that the word defense, as used in the Code, must include partial as well, as complete defenses/ and that the law should be construed so as to require the defendants, in all cases, to> plead any new matter constituting either an entire or partial defense, and prohibit them from giving such matter in evidence upon an assessment of damages when not set up in the answer.’ In Piercy v. Sabin, 10 Cal., 27, after stating that all new matter of defense must be pleaded, the court says that ‘ this feature of the Code is one of the most beneficial and obvious improvements upon the former system. This classification of defenses is-simple, logical, and just. Each party is distinctly apprised of all the allegations to be proven by the other, and each is therefore prepared to meet the proofs of his adversary.’ (Pier v. Finch, 29 Barb., 170; Walton v. Minturn, 1 Cal., 362.)”
This case is cited with approval in Allen v. Saunders Co., 6 Neb., 436; B. & M. R. R. Co. v. Lancaster Co., 7 Id., 33; Jones v. Seward Co., 10 Id., 154, and other cases, and is a reasonable rule that the court should not depart from.
The language of the Code is plain and unambiguous, and there is no occasion for a mistake as to its meaning. If a party can hold back his defense, in effect keep it secret until the trial and then "spring it suddenly upon the adverse party, who, for want of notice, is not prepared to meet it, he will thereby obtain undue advantages, which in many cases would amount practically to robbery, by giving him a verdict or judgment to which he was not entitled. This the Code will not authorize or sanction. The court therefore properly excluded the testimony offered by *792the plaintiff in error. There is no error in the record and the judgment is
Affirmed.
The other judges concur.