This is an original action commenced by Nor-beck & Nicholson Company, plaintiff, against the state of South Dakota, under the provision of the Code of Civil Procedure, providing that when the State Auditor shall refuse to allow any just claim against the state, that any person deeming himself aggrieved thereby may maintain an action in the Supreme Court against the state to determine the legality or justness of such claim. From plaintiff’s complaint it • appears that one Peter Norbeck, during the year 1911, was president of the plaintiff corporation, and was also, during 1911, state senator for Spink county, state of South Dakota; that during the legislative session of 1911 (Laws 1911, c. 38), an act was passed and became a lav/, appropriating $5,000 to sink and equip an artesian well and provide necessary water mains in connection -therewith upon the State University grounds at Vermillion; that after the passage of said law, and about the 15th of March, 1911, the said Peter Norbeck, acting as president of plaintiff corporation, entered into a contract with the state board of regents of education to construct, sink, and equip said artesian well mentioned and provided for in said legislative act; that in and by the terms of said contract plaintiff was to furnish all labor and materials for the sinking and construction of said well, and was to receive as compensation therefor a certain sum per foot depth; that under and by virtue and in pursuance of said contract plaintiff did sink and construct said well to the dept of 442 feet and furnished the materials therefor, between the 20th day of March and the 8th day of April, 1911, upon the State University grounds, and that the state ever since has been, and now is, enjoying the full and exclusive use and benefit of said well, and of plaintiff’s labor and materials furnished in the construction thereof; that thereafter, on about the 1st day of May, 1911, and in due form of law, the plaintiff presented its claim in the sum of $2,-602.89 to the State Auditor for allowance and issuance of a warrant upon the State Treasurer therefor, and that the State Auditor refused to allow such claim- on the ground that the same was in conflict with section 12, article 3, of the state -Constitution; that the reasonable value of the work and materials furnished by plaintiff in the construction and sinking of said well is the -sum of $2,602.89, for which amount plaintiff demands judgment against the defendant, state of South Dakota. To which’ complaint de*196fendants interposed a demurrer on the ground that such complaint fails to state facts sufficient to constitute a cause of action against defendant.
[1] It is the contention of the defendant state that this contract entered into by Norbeck & Nicholson Company to sink and equip said well is an illegal contract by reason of its being prohibited by section 12, article 3, of the Constitution, and is against public policy, and that plaintiff cannot acquire any legal right of any kind or character under such an illegal contract, either on the express contract, or an implied contract, or on quantum meruit; while, on the other hand, it is the contention of plaintiff that although the said contract is illegal and void and prohibited by law, still plaintiff should be permitted to recover on quantum meruit— that is, implied contract — the reasonable value of the labor and materials furnished the state in pursuance and performance of such prohibited contract. We are clearly of the opinion that, under the great weight of judicial authority, the state is right in its contention that said contract is wholly illegal and void, and against public policy, and cannot be enforced, in whole or in part, on any theory of any kind. Section 12, article. 3, state Constitution, among other things provides: “Nor shall any member of the Legislature during the term for which he shall have been elected,, or within one year thereafter, be interested, directly or indirectly, in any contract with the state or any county thereof, authorized by any law passed during the term for which he shall have been elected.” Section 3, article 12, of the state Constitution further provides, among other things: “The Legislature shall never * * * authorize the payment of any claims or parts thereof created against the state, under any agreement or contract made without express authority of law, and all such unauthorized agreements or contracts shall be null and void.” Here, then, we have a contract which is expressly .prohibited by the Constitution, the highest law of the state, and which unauthorized contract is declared to be null and void, in whole and- in part.
The illegality of some contracts consists in the fact that the subject-matter of the contract is illegal without reference to the parties who enter into such contracts, such as contracts relating to the sale of intoxicating liquors in territory where such sale is prohibited and made penal, and such contracts are almost univer*197sally held to be illegal, and void, and against public policy, and of no effect whatsoever, and wholly uneforceable in the courts, either on the express contract, or on an implied contract, or on the quantum meruit. The case of Sullivan v. Horgan, 17 R. I. 109, 20 Atl. 232, 9 L. R. A. 110, is an illustration of this class of illegal contracts, where a person hired out as a clerk to a person who sold groceries and illegally sold intoxicating liquors, wherein it was held that such clerk could not recover on the quantum meruit for the value of his services as grocery clerk where the contract was inseparable. To the same effect are the decisions in the following cases: Brinkman v. Eisler ( City of Ct. N. Y.) 16 N. Y. Supp. 154; Bixby v. Moor, 51 N. H. 402; Foley v. Speir, 100 N. Y. 552, 3 N. E. 477; Cole v. Brown-Hurley Hardware Co., 139 Iowa, 487, 117 N. W. 746, 18 L. R. A. (N. S.) 1161, 16 Ann. Cas. 850; Chapman v. Haley, 117 Ky. 1004, 80 S. W. 190, 4 Ann. Cas. 714, and note. In the case at bar, and other cases of this class, it will be observed that the illegality consists of or arises, not from the inherent nature of the subject-matter of the contract itself, but from the express prohibition against the parties, situated in certain fiduciary or trust relationship toward each other, entering into contracts at all with each other, either directly or indirectly. In the case of Hope v. Park Association, 58 N. J. Law, 627, 34 Atl. 1070, 55 Am. St. Rep. 614, the court said: “An agreement which controls or restricts, or tends or is calculated to control or restrict the free exercise of a discretion for the public good, vested in one acting in a public afficial capacity, is illegal, and so reprobated by the courts that no redress will be given to a party' who sues • for himself in respect of it.”
[2] A member of the state Legislature, by virtue of his office, stands in a fiduciary and trust relation towards the state; in other words, 'he is the confidential agent of the state for the purpose of appropriating the state’s money in payment of the lawful contractual obligations, of the state, and it seems to be almost universally held that it is against sound public policy to permit such an agent, or any agent occupying a like position, to himself be directly or indirectly interested in any contract with the state or other municipality, during the period of time of -the existence of such trust and confidential relationship. The private interest of such an agent should not become antagonistic to his public *198duty. Illegality of contract, arising from express prohibition of law based on public policy, renders the contract wholly null and void for any purpose, and precludes a recovery on an implied contract or on the quantum meruit; otherwise a means would be thereby furnished for the undoing of the law itself. In Berka v. Woodward, 125 Cal. 119, 57 Pac. 777, 45 L. R. A. 420, 73 Am. St. Rep. 31, the court said: “We can yield no assent to the contention that our laws apply only to express contracts. The statute itself is general in its terms * * * The only difference between an express contract and an implied contract is that in the former all of the terms and conditions are expressed between the parties; and in the latter some one or more of the terms and conditions are implied by law from the conduct of the parties. * * * To say that implied contracts were not prohibited would be to destroy the purpose and efficiency - of the 'laws, and leave the people at the mercy of careless or unscrupulous officers.” Also see Milford v. Milford Waterworks, 124 Pa. 610, 17 Atl. 185, 3 L. R. A. 122. The implied law would be thus placed above and superior to the provisions of the express law. Whatever the cause or basis of the illegality, whether the inherent nature of the subject-matter of the contract or whether prohibition against the contracting parties, the effect, so far as the enforcement of the contract is concerned, seems to be the same.
[3] The general rule is that illegal contracts — illegal by reason of being expressly prohibited by law — are unenforceable, and no one can acquire any legal right under such a contract. If one of the parties has performed in whole or in part he cannot avoid the contract and recover from the adversary party a reasonable compensation for such performance. No right, therefore, arises out of an illegal transaction even on the theory of constructive contracts. The "law leaves the parties to illegal contracts where it finds them, and gives them no assistance in extricating themselves from the situation in which they have placed themselves — no recovery can be had- for services rendered thereunder, either on the express contract, or on an implied contract, or on quantum meruit. Palmer v. State, 11 S. D. 78, 75 N. W. 818; Page on Contracts, § 519; Berka v. Woodward, 125 Cal. 119, 57 Pac. 777, 45 L. R. A. 420, 73 Am. St. Rep. 31; Smith v. Albany, 61 N. Y. 444; Milford v. Milford Water Co., 124 Pa. 610, 17 Atl. 185, 3 *199L. R. A. 122; City of Northport v. Northport Townsite Co., 27 Wash. 543, 68 Pac. 204; Bay v. Davidson, 133 Iowa, 688, 111 N. W. 25, 9 L. R. A. (N. S.) 1014, and note, 119, Am. St. Rep. 650; Grant v. Brouse, 2 Ohio S. & C. P. Dec. 24; Short v. Bullion Mining Co., 20 Utah, 20, 57 Pac. 720, 45 L. R. A. 603; Bank of United States v. Owens (U. S.) 2 Pet. 527, 7 L. Ed. 508. A contract founded on a statute making an act penal is void, although the statute does not .pronounce it void or expressly prohibit it. A contract that is declared and pronounced to be null and void by express law is just as null and void as if made penal. The effect on the contract is the same in either case. Berka v. Woodward, supra; Brooks v. Cooper, 50 N. J. Eq. 761, 26 Atl. 978, 21 L. R. A. 617, 35 Am. St. Rep. 793; Seidenbender v. Charles, 4 Serg. & R. (Pa.) 8 Am. Dec. 682.
[4] To the general rule above stated there are exceptions which permit the party who has performed an illegal contract, and who has parted with consideration, to recover such consideration on the quantum meruit or quantum valebat. One exception to this general rule is where the law itself provides for such recovery. Another exception is where the parties are not in pari delicto, in which case the party not participating in the wrong may recover his consideration, but not the other party. It might be said that in the case present the defendant state is not in pari delicto, but this would not apply to plaintiff nor to the state officials who entered into this contract on behalf of the state. Another exception is where the contract prohibited is neither declared void by the law nor made or relates to a penal matter, but is prohibited only; and although the parties are in pari delicto, and where one party has received something of value from the other in execution of the contract, and where such contract involves no moral turpitude, or other reason of public policy forbidding the same, the courts will grant relief only to the extent of compelling the restoration of such property or the value thereof. Page on Contracts, §§ 519 to 525; Manchester Ry. Co. v. Railway Co., 66 N. H. 100, 20 Atl. 383, 9 L. R. A. 689, 49 Am. St. Rep. 582; Brooks v. Martin, 69 U. S. (2 Wall.) 71, 17 R. Ed. 732. Contracts falling within this last-mentioned exception are said by some courts to be voidable as distinguished from null and void. Such contracts were at common law regarded as voidable only. Note to Bay v. Davidson, *200supra; Currie v. School Dist., 35 Minn. 163, 27 N. W. 922. Plaintiff claims to 'be within the last-mentioned exception, but we are of the opinion this contention is not tenable for the rason that such contracts made directly or indirectly by a member of the Legislature are expressly prohibited, and expressly declared to be null and "void by the state Constitution; and for 'the further reason that such contracts are forbidden by and are against public policy; and for the further reason that said exception is not available as against the public, but is available only in favor of private individuals on the ground of estoppel. In speaking of this last-mentioned exception and the cases following thereunder, the court, in Berlca v. Woodward, said: “Where contracts of public officials * * * have not been expressly forbidden by law, the principles which we have been considering have in some cases been applied, and a recovery has been permitted. In these cases it has been said that the demands of public policy have been satisfied by allowing the officer to recover, not according to the terms of his contract, but upon a quantum meruit. * * * But in no one of these cases, nor indeed in any case which has come under our observation, have the courts entertained any contract, or any rights growing out of a contract, where either the consideration was base, or the contract was against the express prohibition of the law. This, then, is the undoubted rule, that when a contract is ¡expressly prohibited by law, no court of justice will entertain an action upon it, or upon any 'asserted rights growing out of it. And the reason is apparent; for to permit this would 'be fore the law to aid in its own undoing.” To the same effect is City of Northport v. Northport Townsite Co., 27 Wash. 543, 68 Pac. 204.
[5] Some contracts are prohibited by law for the benefit of some particular class of individuals, and it seems to be held that the persons for whose individual benefit such contracts are prohibited may waive such prohibition, or by their acts may be estopped from asserting such unlawfulness, and the courts grant recovery of the consideration on the quantum meruit or quantum valebat, under the exception to the general rule we are now considering, but this exception to the rule is not available when in contravention of any public reason or public policy. Section 2412, Civil Code; Berka v. Woodward, supra; Fowler v. Scully, 72 Pa. 156, 13 Am. Rep. 699.
*201[6] No public official, not even the Legislature, is authorized to waive the question of illegality of contract on the part of the state. Section 3, article 12, Const., not only provides that such contracts shall -be null and void, but that no -payment either in whole or in part, shall be made on account thereof. In North-port v. Northport Townsite Co., supra, the court said: “The statute declares such contracts void, not merely voidable, and further declares that any claim for compensation for work done or supplies and materials furnished shall be void, and that, even if audited and allowed, it shall not be paid. The statute seems to have shorn such a contract of all equitable considerations, when it declared that compensation shall not be paid by the treasurer.” The statute of 'Washington under consideration in the Northport Case is no stronger than the provisions of the Constitution of this state. In legal effect they are the same.
[7] The fact that the contract in question was made between Norbeck & Nicholson Co., a corporation, and the state, and not directly between Peter Norbeck and the state is immaterial. Section 12, article 3, Const., says: “Nor shall any member of the Legislature * * * be interested, directly or indirectly, in any contract with the state.” The interest of a stockholder of a corporation is within the reason of the rule prohibiting an officer from being interested, directly or indirectly, in a contract with the state or municipality, of which such stockholder is a public officer. This point was also directly in issue in the Northport Case. In San Diego v. San Diego Co., 44 Cal. 106, the court said: “To hold, therefore, that one' intrusted with property in a fiduciary capacity may rightfully bargain in reference to it with a corporation in which he holds stock would be to ignore all the evils which the rule in question was intended to prevent.” Mechem, Pub. Off. 839; Milford v. Milford Waterworks, 124 Pa. 610, 17 Atl. 185, 3 L. R. A. 122.
[8] That there was no personal moral turpitude or dishonesty of any kind involved in this case, and that the state may have made an advantageous contract and has suffered no loss by reason thereof is also immaterial, so far as the issues presented in this case are concerned. We cannot and do not assume but what plaintiff, and the officers thereof, entered into the contract in question innocently and with the best of motives, but that fact *202will not make valid or give vitality of any character to a contract 'declared to be null and void by the laws of this state. In the Milford Case, supra, the court, in speaking of a contract made in violation of a statute prohibiting city officials from being interested, directly or indirectly, in contracts with the city, said: “The act of i860 is another and a valuable safeguard thrown around municipalities. It was passed to protect the people from the frauds of their own servants and agents. It may be there was no fraud, actual or intended, in the present case, but we will not allow it to be made an entering wedge to destroy the act of i860.” Mechem, Pub. Off. 839; Smith v. Albany, 61 N. Y. 444; Wardell v. Ry. Co., 103 U. S. 651, 26 L. Ed. 509. In Davison v. Bay, 133 Iowa, 688, in N. W. 25, 9 L. R. A. (N. S.) 1014, on this proposition the court said: “As such agent, it was his duty to purchase materials for the town of as good quality and for as low a price as it was possible to procure: But, if he himself became the seller, it was to his interest to sell such articles as he 'had, notwithstanding their quality, for the highest price he could obtain. His duty to the town and his private interests thus became directly antagonistic. It matters not if he did in fact make his private interests subservient to his public duties. It is the relation that the law condemns, not the results. It might be that in this individual case public duty triumphed in the struggle with private interests, but such might not be the case again or with another officer, and the law will not increase the temptation nor multiply opportunities for malfeasance.” In Page on Contracts, § 507, it is said: “It is true that in refusing to enforce ’such contracts one party is given an advantage over the other. Courts cannot adjudicate rights under illegal contracts, however, and the interests of the parties must yield to considerations of public welfare.” It seems to be a general rule or policy of the law not to permit one person, however honest or innocent his acts may be, to serve two masters whose interests are antagonistic. The Constitution makers of this state, as evidenced by section 12, art. 3, and section 3, art. 12, prohibiting certain contracts and also declaring them to be null and- void and prohibiting payment thereon, in whole or in part, evidently intended to and did adopt and establish that rule as the public policy of this state.
[9] Some contention is made that section 3, art. 12, is not *203applicable to the contract in question. This section of the Constitution, in so far as it might relate to the contract involved in this case, provides that the Legislature shall never authorize the payment of any claims or any part thereof created against the state under any agreement or 'contract made without express authority of law, and all such unauthorized agreements and contracts shall be null and void. It must be observed that this section of the Constitution related to contracts and agreements involving the expenditure of public money for and on behalf of the state, and which moneys are subject to be paid out, or more strictly speaking, are authorized to be paid out by the state Legislature. It was the' evident intention of the Constitution makers to take from the Legislature the power to subsequently legalize contracts and agreements in relation to the expenditure of state moneys, which were not expressly authorized by some law at the time the contract was entered into; that is, the Legislature, 'by subsequent act, could not make leg-al a contract in relation to the expenditure of state money, where said contract was not authorized by some express law at the time of the making of such contract. It was also the evident intention of the Constitution makers to make and declare null and void all agreements and cpntracts in relation to the expenditure of state money, which were not authorized by some express law at the time of the making of such contracts. By the provisions of section 12, art. 3, the contract in question is expressly prohibited by law. We are of the opinion that any contract, whether express or implied, relating to the expenditure of public money for and on behalf of the state, which is expressly prohibited by the Constitution or other laws of the state, is included . within the class of contracts designated in section 3, art. 12, as “any agreement or contract made without express authority of law.” and therefore null and void. A contract that is expressly prohibited by law is certainly not a contract that is expressly au-thorised by law. Section 12, art. 3, provides that a member of ihe Legislature shall not be interested, directly or indirectly, in anv such contract, which includes implied as well as express contracts. Berka v. Woodward, supra. Section 3, art. 12, provides that any agreement or contract made without express authority of law shall be null and void. The provisions of the latter section are suffi ciently broad to include all kinds and all sorts of contracts, ini-*204plied as well as express. By no stretching of the rules of reason or logic are we able to arrive at any other conclusion than that both the said sections of the Constitution are applicable to the contract in question, and that tire said contract by reason thereof is null and void. It is true that but for section 12, art. 3, the contract in question would have been authorized by law, as there was, at the time said contract was entered into, express law generally authorizing such a contract, but the difficulty is with the fact that said section 12, art. 3, actually exists and is a part of the Constitution, and actually prohibits a member of the Legislature from entering into such a contract. There was or could be no general or other law of the state authorizing such a contract, with this constitutional provision in existence. Any general law on the subject must of necessity be limited and modified by this constitutional provision. This constitutional provision is aimed at, and declares void, all unauthorized contracts, without regard to whether they are express or implied. As we have elsewhere herein noted, illegality of contract may arise: (1) From the ban on the subject-matter, or (2) from an inhibition against certain parties, on the grounds of public policy by reason of their trust relationship, entering into such contracts. Neither -class of such illegality is favored over the other. In the eye of the law one class is just as illegal and just as unauthorized as the other.
The demurrer to plaintiff’s complaint may be and hereby is sustained.
WHITING, P. J.While I am unable to concur with much that has been said by Justice McCOY in the foregoing opinion, yet it seems clear to me that he is correct in bis conclusion that the demurrer to the complaint should be sustained. The importance of the questions presented must be my excuse for setting forth, at some length, the reasons for, my special concurrence.
I do not believe that section 3, art. 12, of the Constitution has any application whatsoever to the facts of this case. As I read that section, it relates only to contracts which a Legislature might have authorized, and forbids the Legislature to pay for anything done for the state when, at the time the thing was done, no contract therefor had been authorized by statute; and provides that such unauthorized deeds and contracts shall be null and void. I am therefore of the opinion that, in so far as Justice McCOY has *205based 'his opinion upon the claim that there is an express constitutional provision declaring the contract before us to be null and void, his views find no support in the Constitution.
That no man can properly serve two masters — and especially that no man can properly serve another and at the same time be interested adversely to such other in the subject of such service has long been recognized in that rule — applied, even at common law, to all agents and persons in fiduciary positions, including members of such administrative boards as city councils, school boards, etc., forbidding such persons from contracting with the corporation of which they are officers. Based upon the same rule of human nature and action, we find both constitutional and statutory enactments forbidding public administrative officers from contracting with their corporations, such enactments oft-times declaring such contracts to be null and void and even imposing the penalties of the criminal law upon an officer who enters into same. These constitutional and statutory provisions, as they have changed from time to time, reflect the public conscience and reveal that which is deemed public policy at the time of their enactment. It is interesting to note that not one single authority cited in my colleague’s opinion construes a constitutional or statutory provision pertaining to contracts entered into by legislative officers, and the only case that I have been able to find, where the court had before it such a provision, is the case of Lillard v. Freestone County, 23 Tex. Civ. App. 363, 57 S. W. 338. In that case the only question determined was that the express contract was void and unenforceable; in the opinion, not a word is to be found suggesting the reasons upon which the constitutional enactment in question is based.
I believe that there will be found no case wherein the precise question before us has been presented and discussed. While from the earliest days of the common law it 'has been recognized as against public policy to allow administrative officers, acting in their official capacity, to contract with or to perform work for that public corporation of which they are officers, yet there can be found upon the statute books of the states few, if any, statutes forbidding an officer, such as a city councilman (who has not only executive but also legislative power), from entering into a contract with the city after his term of office has expired, and *206forbidding it because such contract was one which had been authorized by some ordinance passed while such person was a member of such council. Such a statute would be exactly analogous to the constitutional provision before us, and the evil sought to be prevented would -be exactly the same in kind, if not in degree, as that which might flow from allowing a member of the Legislature to enter into contracts authorized by laws passed while he was such legislator.
While statutes prohibiting administrative officers from contracting in their own behalf with the corporate body recognize the same fundamental proposition as does the constitutional provision now before us — namely, that no man can serve two masters, and that .it is therefore against public policy to allow any one to act for himself when it is his duty to act for the public — yet there is a fundamental distinction 'between such provisions and those forbidding contracts by legislative officers, which distinction will be recognized when we stop to consider the nature of the service that is sought to be protected by each class of enactments. In -the case of the administrative officer, the evil sought to be prevented is one liable to affect the contract itself, and one which would be present even after the contract had been entered into, because, so long as such officer holds his position of trust and confidence, there remains the danger that he will fail to perform, fully his duty in •carrying out the provisions of the contract, though the contract itself be perfectly fair in its terms. Speaking of the members of the Legislature, Justice McCoy says: “It seems to be almost universally held that it is against sound .public policy to permit such an agent, or any agent occupying a like position, to himself be directly or indirectly interested in any contract with the state or other municipality during the period of time of the existence of such trust or confidential relationship,”
My colleague is in error in such statement. The only contract -that a legislator is forbidden to enter into with the state is a contract authorized by a lamw passed while he was a legislator. Even while a member of the Legislature, he is as free as any other person to enter into other contracts with the state. We have this constitutional provision, not because it is feared that a member of the Legislature would or might use his position to obtain an unfair contract, or would or might, owing to such position, at*207tempt to avoid full compliance with the terms of his contract- — the fear of which has led to the enactment of laws forbidding administrative officers from being parties to contracts with their corporate bodies — but this constitutional provision was enacted through fear that a legislator might be, either consciously or unconsciously, influenced by selfish motives when voting for or against: a bill. If there were no danger that a legislator’s vote might be so influenced, there would be absolutely no more reason to forbid his entering into a contract authorized by the Legislature of which he was at member than to forbid his entering into any other contract with the state.
In the case of an enactment forbidding a legislative officer from being interested in a contract authorized by a law passed during his term, the law looks to a time prior to- and entirely separate and distinct from the time of the entering into, or of the performance of, the -contract. Such a contract is not forbidden because the contractor as such would be occupying an inconsistent position, in that he would, in entering into the contract, be attempting to serve the state as well as himself. So far as the' state and he are concerned, when entering into the contract, they deal with one another at arm’s length exactly as would the state and any other contractor; as a member of the Legislature, the contractor is not presumed to be in any better position to- obtain an unfair contract than if the contract related to some matter concerning whicih he was not forbidden to contract. That the framers of our Constitution recognized that the legislator’s position did not tend to affect the contract itself appears from the fact that the law not only forbids his entering into such a contract during the term for which he was elected, but during -one year thereafter. Under some -Constitutions such prohibition extends for all time. No person can presume that the framers of the Constitution imagined that a-ny 'legislator, after he had go.ne out of office, would occupy a fiduciary relation to the state, or would be in a position enabling him to take an undue advantage of the state when contracting. In enacting this provision -of the Constitution the framers thereof had in mind, not the time of entering into the contract n-or the relation of the parties at that or any subsequent time, not even any danger that the legislator might obtain an unfair contract but they had in mind solely the time and his relation to the *208state when he should cast his vote, and they sought to remove from his path an influence that might affect his vote. This constitutional provision was designed- to prevent any legislator, while he should be serving the state in the enactment of laws, from being tempted and influenced, either consciously or unconsciously, by any selfish interests.
In the case of a contract entered into 'by an administrative officer though forbidden by law, the public could often be protected by simply holding the express contract void and allowing a recovery on quantum meruit, it being the contract only that is tainted, and the evil to be guarded against being an unfair contract or a failure to fairly perform the contract. By a recovery upon the quantum meruit the wrongdoer would reap no benefit from the wrong and the .public might be amply protected. But this is not true in the case of a contract entered into by a legislator in breach of a constitutional provision such as the one before us. The spirit of this constitutional provision would be fully broken, and as great evils might result where the legislator' voted for a certain law when influenced, either consciously or unconsciously, by the -hope of doing work thereunder and recovering the fair value of such work, as where such legislator was influenced by a hope of benefiting through an express contract; the fountain of legislation would be polluted in like manner though perchance not in like degree. The difficulty of determining the motives which may influence the legislator in his vote renders it not only impracticable but impossible to insure the purity of legislation except by the enforcement of provisions, such as the one before us, which do not permit of inquiry into such motives, but do remove the source from which might spring wrong motives. It follows that, under the constitutional provision in question, we can neither inquire into the motives of the legislator, nor into the value of the services rendered under the forbidden contract. Therefore, under the facts pleaded in the complaint, conceding, as I fully believe, that the plaintiff’s president was not consciously— and probably not even unconsciously' — influenced in his vote, or in anything that he may have done or failed to do as a member of the Legislature in relation to the bill which authorized the contract in question, by any motive of gain, and conceding that the state has been greatly benefited by the services performed, this court *209can grant it no relief, and the demurrer to its complaint must be sustained.