After stating the facts,
MiNEB, J.,delivered the opinion of the court.
It appears from the pleadings in this case that this court has heretofore passed upon the right of the plaintiff to recover for services rendered for which this proceeding is brought.
The case of Everill v. Swan, 17 Utah 514 55 P. 68, was an application for a writ of mandamus by the petitioner against the respondent to compel him to draw a warrant in favor of the petitioner for a certain sum claimed to be due him and several others who'had assigned to him their salaries as policemen. The parties were the same in that case as here. In that case the right of the petitioner, *61and those who assigned to him the salary claimed, and their title to the office was adjudicated. Among other things in that case this court held, as follows: “We conclude that the petitioner and his assignors, under the existing laws, are entitled to hold their offices until lawfully removed for cause, and that the mayor and city council having attempted to remove them from office without cause, their action was unlawful and void. The officers not having been lawfully removed, it was the duty of the respondent to draw his warrant for their salaries upon proper demand therefor, and the court erred in not issuing the writ of mandate to compel him to do so. The case must therefore be reversed, with costs, and remanded with directions to the court below to issue the writ.”
The right and title to an office may, in some cases, be determined in an action by the claimant for his salary.
The case of Williams v. Clayton, 6 Utah, 86, was where mandamus proceedings were brought to recover the salary of an officer where there was no cle facto officer in possession, and the court held as follows: “It being clear that the title to the office of superintendent could not be tried by a proceeding in the nature of quo war-ranto after the office had been vacated by the alleged cle facto officer, Nuttall, and after the office itself had been abolished, there could be no legal objection to passing upon such title in some other action in which it might arise. It arises incidentally in this case. It is not the direct object of the action, but it is first brought into the case by the answer of the defendant, which denies the right of plaintiff’s claim to have been the officer. The proceeding is to compel .the issuance of the warrant prayed for, and, to secure this, resort is had to mandamus. That is a proper proceeding, if there be no other plain, speedy, and adequate remedy.”
*62In Pratt v. Swan, 16 Utah, 483, the court said: the action involves the office of chief of police, and those of the entire police force.
The right to hold an office includes the right to receive the salary incident and belonging thereto, and when an ordinance fixes a salary to be paid out of the city treasury, it is not necessary for the city council to make an appropriation for such salary. So, the fact that the city auditor paid a de facto officer, a salary at a time when the de jtire officer was entitled to the office, and was urging his claim in court, does not relieve the municipality from its obligation to the de jure officer, and mandamus is the proper remedy to compel the auditor to issue the order on the treasurer to pay a just salary, after demand and refusal. This has been the holding in this court. Kendal v. Raybould, 13 Utah, 226; Williams v. Clayton, 6 Utah, 86; Pratt v. Swan, 16 Utah, 483; Ward v. Marshall, 96 Cal. 155.
Where a public officer or policeman entitled to a fixed salary is unlawfully removed and prevented through no fault of his own from performing the duties of his office, he is entitled to recover the salary, and the amount earned by him in other employment during his unlawful removal should not be deducted from his unpaid salary, even if the whole salary has been paid to another who filled the supposed vacancy. Fitzsimmons v. Brooklyn, 102 N. Y. 530; Andrews v. Portland, 79 Me. 484; Mechem on Public Officers, Sec. 865, 872; Throop on Public Officers, Sec. 443; People v. Miller, 24 Mich. 458; U. S. v. Addison, 6 Wall. 291; Kendal v. Raybould, 13 Utah, 226.
The answer alleges that the plaintiff and his assignors, abandoned said offices, and that immediately after their removal from said offices, to-wit: On May 25, 1898, they engaged in other employment. ’
*63The former action between the parties was filed August 3, 1898, about two months after plaintiff’s discharge, and those and other defenses named could readily have been set up in that action. The plaintiff and his assignors not only brought suit, but recovered judgment, and were at once restored to their offices, which they then continued to hold. They could hardly be held to have abandoned in this case that which the court held in the former case they were legally entitled to hold and did hold.
The allegation, that plaintiff was ready and willing to perform the duties of the office, in the petition, was unnecessary, and a denial became unimportant.
These officers were kept out of their offices by the city authorities during the period in question, and this court found that they were prevented from performing their duties and that they were ready and willing to perform the same. 12 Enc. Pl. & Pr. p. 1024; Mecham on Public Officers, Sec. 435.
These additional matters relied upon in the answer and which were stricken therefrom, could have been set up in the former action, and not having been plead in that case, the judgment became conclusive as an adjudication between the parties, not only as to matters actually determined, but also as to every other matter which might have been litigated by the parties as a part of the subject in controversy-, but which was omitted from the case through negligence or inadvertance.
In Peay v. Salt Lake City, 11 Utah, 331, this court held: “The defendant can only be called upon to answer the material allegations of the complaint, and upon such allegations the issue is formed, and, when judgment is rendered therein by a court of exclusive jurisdiction, it is conclusive between the parties, upon the same matters, -unless set aside by a court of last resort. And such a *64judgment is final, not only as to the matter- actually determined, but also as to every other matter which might havé been litigated by the parties as part of the subject in controversy, but which was omitted from the case through negligence, or inadvertance, or even accident.
In 1st Herman on Estoppel & Res Judicata, Sec. 457, it is said: “Where the parties and the cause of action are the same, the prima facie presumption is that the questions presented for decision were the same, unless it appears that the merits of the controversy were not involved in the issue. The rule in such case being, that where every objection urged in the second suit was open to the party, within the legitimate scope of the pleadings, in the first suit and might have been presented in the trial, the matter must be considered as having passed in rem judi-catum, and the former judgment in such a case is conclusive between the parties.” 1 Van Fleet’s Former Adjudication, 95; 13 Enc. of Pl. & Pr. 504; Wilson v. Dean, 121 U. S. 525; 21 Enc. of Law, (1st ed.) 216, 217; State v. Brown, 64 Md. 199; Hall v. Freeman, 82 Ky. 505; Beliot v. Morgan, 7 Wall. 119.
After an examination of the facts in this case we conclude that no error was committed by the trial court in striking out the affirmative allegations in the answer and in rendering judgment in favor of the plaintiff. The judgment of the district court is affirmed, with costs.
Bartch, C. J., and Baskin, J., concur.