аfter stating the case: While the plaintiff, in his complaint, prayed for the judgment to which we think he was legally entitled, instead of a mandamus, if the contract *63 with the city had been valid, yet his cause of action was not properly conceived, and he cannot recover the $600 which he subscribed and paid because the contract with the city was broken by it, as it was void, being against public policy and founded upon an illegal consideration. For the same reason, the third issue was immaterial, as constituting the basis for affirmative relief, in behalf of the defendants. The enhancement in value of plaintiff’s properly by the erection of the city hall on the site designated in the contract cannot be used as a counterclaim, as the city can gain nothing, either directly or indirectly, by the illegal transaction. It surely cannot benefit in any way by a void contract, for when it is determined that the transaction was invalid, any increase in value of the plaintiff’s property becomes a mere incident of the erection of the building at that place and the case stands the same as if the contract had not been made and what the city did was merely a voluntary act on its part. There is nothing, therefore, to support the claim for an allowance because of the enhancement, for the reason already stated and for the reason hereafter assigned for denying relief to the plaintiff.
The form of the issues indicates that the court proceeded in the trial upon the theory that the contract was valid, and had been broken, and for this reason submitted tlie third issue, whereas the case should have been tried upon the opposite idea, that the contract was void and that no question of damages or other question which presupposed the validity of the contract, such as the .enhancement in value of plaintiff’s property, was presented. While the third issue was not material in the respect indicated, it is material in another respect, as will hereafter appear. If the contract was void, and plaintiff is not by his relation to the transaction, prevented from recovering, it follows that he would be entitled to judgment, as for money had and received to his use, or for money paid upon a consideration which has failed or upon a condition, compliance with which cannot be enforced, which practically *64 amounts to tbe same tiling. For tbe same reason as that just given, plaintiff’s prayer for a mandamus, or coercive process, was properly denied. This sufficiently disposes of all preliminary matters and brings us to tbe consideration of the real issues involved.
Tbe case naturally resolves itself into two questions, which require discussion: First, was tbe contract against public policy, or based upon an illegal consideration, and therefore void ? Second, tbe plaintiff being a party to tbe illegal transaction, if it was illegal, is be in a position to ask for a return of tbe money, or is be debarred of a recovery, being in pari delicto f
Tbe statute provides that tbe authorities of a townj whether commissioners or aldermen, shall make such orders for tbe disposition or use of its property as tbe interest of tbe town may require. Revisal, section 2916. Judge Dillon, referring to tbe general duty of municipal officers, with respect to tbe affairs which they have in charge, says: “Powers are conferred upоn municipal corporations for public purposes ; and as their legislative powers cannot, as we have just seen, be delegated,
so they cannot without legislative authority, express or
implied,
he bargained or bartered away.
Such corporations may make authorized contracts, but they have no power, as a party, to make contracts or pass by-laws which shall cede away, control, or embarrass their legislative or governmental powers, or which shall disable them from performing their public duties. The cases cited mark the scoрe and illustrate the application of this salutary principle in a great variety of circumstances, and, for the protection of the citizen, it is of the first importance that it shall be maintained by the courts in its full extent and vigor.” 1 Dillon Mun. Corp. (4 Ed.), section 97, p. 156. It will be seen, therefore, that public office in a city is a public trust to be administered for the equal benefit and advantage' of all the citizens of the municipality and the governing body will not be per
*65
mitted to contract at any time so as to deprive itself of the free exercise of its judgment and discretion in providing for what may afterwards turn out to be the best interest of all citizens alike, and especially will it not be allowed by an obligatory agreement to discriminate in favor of one citizen or class of citizens as against another entitled to equality of privilege and benefit, even for a valuable consideration. It must at all times retain freedom of judgment, so that its decisions will be influenced оnly by a regard for the public welfare. We take it that any contract by - which it should be attempted to prevent the city authorities from deciding impartially on a matter affecting the general welfare would be unenforcible. If public trustees or officers may by contract divest themselves of any portion of the essential powers intrusted to them, they may just as well alienate all of them, though by degrees, and thus eventually abdicate the exercise of every governmentаl function. Such agreements are therefore contrary to the true principles upon which society is founded and subversive of all well-regulated government. These propositions would seem to be self-evident. “All agreements for pecuniary considerations, to control the business operations of the government, or the regular administration of justice, or the appointment to public offices, or the ordinary course of legislation, are void as against рublic policy, without reference to the question whether improper means are contemplated or used in their execution. The law looks to the general tendency of such agreements, and it closes the door to temptation by refusing them recognition in any of the courts of the country.”
Tool Co. v. Norris,
*71
When a contract belongs to a class which is reprobated by public policy, it will be declared illegal though in that particular instance no actual injury may hаve resulted to the public, as the test is the evil tendency of the contract and not its actual result. 15 A. & E. Enc. (2 Ed.), 934. We must not be understood as holding that in no conceivable case can a citizen contribute to the expense of erecting a public building. We can easily imagine circumstances where such contributions might be lawful, and proper to be considered in determining the best location for the public, but the donation of money must not be the inducement to the seleсtion of a site apart from the public interests concerned. Oases which strongly approve the doctrine by which the particular contract in this case is condemned and in which the authorities are reviewed at length, are
Woodman v. Innes,
This court has recently had under consideration in
Glenn v. Commissioners,
This brings us to the consideration of the next question, whether the contract being void as founded upon an illegal consideration, the plaintiff can recover the money he has paid in part execution of the same. With reference to this subject certain rules may bе taken as settled. The law gives no action to a party upon an illegal contract, either to enforce it directly or to recover back money paid on it after it has been executed.
Webb v. Fulchire,
But it must not be supposed from what has been said, that in order to deprive a party of the right to repudiate an illegal
*74
contract and to recover money already paid thereon, it is necessary that the illegal transaction should have been fully executed, as it is quite sufficient for that purpose that there has been a partial fulfillment of the illegal undertaking by the party against whom the action is brought for the recovery of the amount so paid to him. 15 Am. & Eng. Enc. of Law (2 Ed.), 1007. We believe that the law writers and the courts are fairly well agreed upon that proposition.
Kearley v. Thompson,
L. R., 1 Q. B. Div., 742;
Knowlton v. Spring Co.,
No Error.
