OPINION OF THE COURT.
ROBERTS, C. J. —This is an action by Frank L. Walratli against the board of county commissioners of Valencia County, and the individual members of the board, to restrain them from carrying into execution a contract for the construction of a court house and jail at the county seat of said county. The pleadings show that a contract had been entered into between the board of county commissioners and Campbell Brothers, by which the latter were to construct and complete the court house and jail, in accordance with plans and specifications, and that the contractors' had begun work under said contract and had expended large sums of money thereon for labor and material. Campbell Brothers, although within the jurisdiction of the court, were not made parties to the suit. The petition was filed to test the validity of an act of the legislative assembly of the Territory, approved March 8, 1909, and being chapter 19, S. L. 1909, whereby the legislature attempted to confer upon the County of Valencia authority to use the proceeds of bonds received by it from the County of Torrance, for the purpose of constructing a court house and jail. Appellees filed an answer to the merits, upon the 'incoming of which appellant filed a motion for judgment on the pleadings. His motion was overruled by the court, and he elected to stand upon the motion and demanded judgment upon the pleadings. The court found that the appellant was not entitled to the relief prayed for in his complaint and dismissed the same. From such judgment this appeal was taken. For a reversal of the judgment appellant relies upon four propositions, viz:
“1. That the act in question is a local and special law in contravention of the Act of Congress commonly called the Springer Act.
‘‘2. That the legislature havaing prescribed a method by w hich the funds for the erection of court house and pail might be raised in any county, that method is exculsive.
“3. That the act is inconsistent with certain provisions of the State Constitution, and was not continued in force by the schedule of that instrument.
“4. That the contract in question created an indebtedness of the County of Valencia which, together with the existing indebtedness of the County, exceeded four per centum upon the assessed valuation of the taxable property of the County, in violation of the restrictions of the so-called Springer Act.”
But whatever may be the views of the court on the questions stated, if the court below rightfully refused the injunction, we can do nothing more than affirm the decision.
Appellees argue that the contractors, Campbell Brothers, were necessary and indispensable parties to the suit, and, if this be true, then this court would be warranted in'assuming that the judgment of the trial court dismissing the complaint was rendered because no other judgment could have been-rendered in the absence of a necessary and indispensable party to the suit. Jeffries-Basom v. Nation, 63 Kansas 247.
The question then to be determined is whether the contractors were necessary and indispensable parties to the suit. The rule is stated as follows, in Story’s Equity Pleadings, sec. 72 — •
“It is the constant aim of Courts of Equity to do complete justice, by deciding upon and settling the rights of all persons interested in the subject matter of the suit, so that the performance of the decree of the court may be perfectly safe to those who are compelled to obey it, and also, that future litigation may be prevented. Hence, the ■common expression, that Courts of Equity delight to do justice and not by halves. And hence, also, it is a general rule in Equity, that all persons materially interested, ■either legally or beneficially, in the subject matter of the suit, are to be made parties to it, either as plaintiffs or defendants, however numerous they may be, so that there may be a complete decree, which shall bind them all. By this means the court is enabled to make a complete decree between the parties, to prevent future litigation by taking away the necessity of a multiplicity of suits, and to make it perfectly certain, that no injustice is done, either to the parties before it, or to others who are interested in the subject matter.”
It must be apparent that Campbell Brothers, the contractors, were interested in the subject matter of the present action, for, had appellant succeeded the board of county commissioners would have been perpetually enjoined from paying them for the construction of the court house and jail. Their rights to receive compensation, under the ■contract, would have been determined, in a proceeding to which they were not a party. It is true they would not be bound by the judgment, and could have relitigated the very questions before the court in this case, but that fact is, under the rule stated by Story, but an additional argument in support of the necessity of making them parties to the suit. It would, indeed, present an anomalous situation, should the appellant have prevailed in the present case,' and the judgment have become final, and thereafter the contractors had instituted suit and recovered against the county, and, by mandamus should attempt to force the commissioners to pay the contract price, in face of the restraining order. The very statement shows the necessity of making the contractors parties to the suit.
“One of the most essential prerequisites for a final injunction is that all persons interested in the subject matter and result should be made parties. (See Wiser v. Blackly, 1 John Ch. R. 438) Chancellor Kent observed: TTou must have before the court all whose interests the-decree may touch, because they are concerned to resist the-demand, prevent the fund from being exhausted by collusion/ The rule is so obviously proper that it needs no-comment, nor to be supported by authority.” State of Kansas v. Anderson, 5 Kansas 90.
The case cited supra was a suit to enjoin the treasurer of state from paying over the proceeds of the sale of 500,-000 acres of land granted to several railroad companies by the act of 1866, and it was there held that the railroad companies were proper and necessary parties.
In the case of Van Husan v. Heames, 96 Mich. 509, it was held that the contractor was a necessary parry to a-bill filed by tax payers against the president, clerk, treasurer and trustees of a village, to restrain the payment of mone3s under a contract entered into by the village council -for furnishing a water- supply.
In the case of King v. Commissioners Court, 10 Texas-Civil App. R. 114, it was held that where a county has contracted with a bridge company to issue and deliver county bonds and warrants in payment for a public bridge,, and tax pa3ers seek to enjoin the issue of the bonds, the-bridge company is a necessary party to the action.
For cases of similar import, see Hutchinson v. Burr. 12 Cal. 103; Butcher v. City of Camden, 29 N. J. Eq. 478; Graham v. City of Minneapolis, 40 Minn. 436; Lussen v Sanitary District, 192 Ill. 404; Benson v. Mayor, etc., of Albany, 24 Barb. 248; City of Anthony v. State, 49 Kansas 246; Privet v. Stevens, 26 Kansas 528; Shields v. Barrow, 17 How. 130; Consolidated Water Co. v. Babcock, 76 Fed. 243; Consolidated Water Co. v. City of San Diego. 84 Fed. 369; Kircher v. Pederson, 117 Wis. 68.
In the last cited case the Court say: “Indispensable parties, it was said, are those persons having a property interest in the controversy that will be directly affected by the decree or the enforcement thereof.”
1 From a review of the authorities it will be seen that the contractors were indispensable parties to this action, and it is well settled, by the adjudicated cases that the Court will take notice of the absence of indispensable parties. when such fact is made to appear, though not raised by the pleading or suggested by counsel, and will dismiss the plaintiffs bill, when, to grant the relief prayed would injuriously affect persons materially interested in the subject matter and not made parties. Minnesota v. Northern Security Co., 184 U. S. 235; King v. Commissioners Court, supra.
It follows that the judgment must be affirmed, and it is so ordered..