*383 OPINION
By the Court,
Appellant Magill, a licensed contractor in the State of Nevada, and appellant Wright, a licensed contractor in the State of California, entered into a contract with respondents for the construction of a casino, bar and restaurant building at Lake Tahoe in the Sierra Nevada mountains, within the State of Nevada, but fairly close to the California line, for the sum of approximately $130,000. The first cause of action in the complaint in the court below was for the balance of some $12,000 due on the contract. The second cause of action is based on fraud. It alleges that respondent Lewis, prior to March 29, 1955, desired the construction of the building so as to be ready for occupancy for the summer season of 1955 at the Lake, and on said date conferred with both plaintiffs and insistently requested such construction ; that plaintiffs advised Lewis that Wright was not a licensed contractor under the laws of Nevada but was licensed in California and that Wright was prohibited by Nevada statutes from engaging in the contracting business in Nevada and that he could therefore not undertake the contract; that Lewis thereupon falsely and fraudulently and with intention to deceive and defraud the plaintiffs represented that Wright’s failure to possess a Nevada contractor’s license was immaterial to him as he was relying upon Wright’s experience, skill, ability and qualifications rather than upon the guarantee thereof implied from the holding of a Nevada license; that he, Lewis, would not employ the lack of such license adversely to the plaintiffs; that he was satisfied so long as Magill had a Nevada license and that he would consider Magill’s license as inuring to the benefit of the partnership or joint adventure; that said representations were false and known to Lewis to be false and that Lewis intended to use Wright’s lack of a Nevada license as an excuse for refusing to pay in full on the contract; that *384 plaintiffs, believing and relying on these representations, were induced to enter into the agreement to furnish the labor and materials for the structure for the sum, of $130,000, to the end that Lewis was enabled to open for business June 17, 1955, and the building completed August 25, 1955; that Lewis failed to pay the balance due in the sum of $12,735; that plaintiffs in due course filed their lien and their suit to foreclose the same and that defendants answered, setting up Wright’s lack of a Nevada license and moved for summary judgment; that such plea of the statute, if successful, would result in damage to plaintiffs in the sum of $12,735 by reason of the false and fraudulent representations alleged, all of which were set forth in an amended and supplemental complaint.
NRS sec. 624.230 provides that it shall be unlawful for any person, association etc., or any combination of any thereof, to engage in the business or act in the capacity of a contractor within the state or to bid a job situated within the state without having a contractor’s license. The sections immediately following provide for the applications for license, examinations thereon, the showing .that must be made by the applicant as to experience, financial responsibility, knowledge of building laws, etc., and proceedings for suspension or revocation of licenses, hearings thereon, etc.
NRS sec. 624.320 reads as follows: “No person, firm, copartnership, corporation, association or other organization, or any combination of any thereof, engaged in the business of acting in the capacity of a contractor shall bring or maintain any action in the courts of this state for the collection of compensation for the performance of any act or contract for which a license is required by this chapter without alleging and proving that such person, firm, copartnership, corporation, association or other organization, or any combination of any thereof, was a duly licensed contractor at all times during the performance of such act or contract and when the job was bid.” NRS sec. 624.360 makes any violation of the chapter a misdemeanor, punishable by a minimum fine of *385 $50. On the basis of see. 624.320 the trial court entered summary judgment for respondents.
Appellants first contend that the entry of a summary judgment under Rule 56 NRCP is precluded if there is any factual determination remaining for the court or jury. Parman v. Petricciani,
(1) They next contend that the second cause of action pleaded in the amended and supplemental complaint alleges fraud and sets up the factual issue for determination by court or jury as to whether the defendants, through the perpetration of such fraud, have attempted unjustly to enrich themselves; and that if the fraudulent actions of the defendants as pleaded can be proved by the plaintiffs, they are entitled to judgment despite the bar of the licensing statute precluding a recovery of compensation under the contract.
Respondents insist that if the statute can thus be circumvented by allegations such as those made by plaintiffs, then all such statutes can be rendered meaningless and their primary purpose defeated.
We start with the proposition that plaintiffs’ second cause of action is not an action on the contract itself or for compensation for its performance, but one to prevent the defendants’ unjust enrichment of themselves accomplished by means of the fraud practiced by them upon the plaintiffs.
Various means and remedies have been employed to afford relief outside of the domains of technical contracts and torts. Unjust enrichment, restitution, quasi contract, implied contract, resulting and constructive trusts, accounting, etc., are some of the means thus employed. See 46 Am.Jur. 99-101, Restitution and Unjust Enrichment, for numerous instances and examples. Denning v. Taber,
Norwood v. Judd may now be considered the leading case on the subject. Decided in 1949, it has been followed or cited with approval in numerous cases from 1954 to 1958. Among these we may note particularly Grant v. Weatherholt,
(2) Respondents further contend that the allegations of fraud as made by plaintiffs do not present a case of unjust enrichment, but that such theory is presented for the first time on this appeal. They concede that if the statute as an absolute bar must be sustained as to the $12,000 balance claimed by plaintiffs, the same situation would exist if respondents had paid no part of the $130,-000 contract and they possessed the entire building without payment therefor.
As to this contention, we are satisfied that under our liberalized rules of pleading these points are not fatal to a recovery. Under Rule 54(c) NRCP “* * * every final judgment shall grant the relief to which the party in whose favor it is rendered is entitled, even if the party has not demanded such relief in his pleadings.” A satisfying analysis of this rule is found in the discussion by Barron & Holtzoff, sec. 1194, pp. 35-37: “The second sentence of Rule 54(c) provides that in non-default cases the judgment is not limited in kind or amount by the *388 demand for relief, but may include whatever relief the successful party is entitled to, regardless of the demand. This provision implements the general principle of Rule 15 (c), that in a contested case the judgment is to be based on what has been proved rather than what has been pleaded. It is a necessary rule in a merged system of law arid equity; indeed the difficulties which some states have had in implementing the merger of law and equity stems from a failure to grasp and to apply this principle. Any rule other than that stated in the second sentence of Rule 54(c) would mean preservation of the distinctions between law and equity and of the various forms of action which these rules are intended to abolish.
"Thus the rule provides that the demand for judgment loses much of its restrictive force if the case is at issue. Particular legal theories of counsel then are subordinated to the court's right and duty to grant the relief to which the prevailing party is entitled whether demanded or not. If a party has proved a claim for relief the court will grant him that relief to which he is entitled on the evidence regardless of the designation of the claim or the prayer for relief. The prayer for relief may be of help as indicating the relief to which the plaintiff may be entitled, but it is not controlling, and the question is not whether the plaintiff has asked for the proper remedy but whether he is entitled to any remedy."
The above quotation likewise disposes of the significance attached to plaintiffs' prayer for judgment for the balance due under the contract. Such is not the measure of the relief that may be afforded. We are concerned here, not with the amount due as compensation under the contract, but with the amount by which defendants have been unjustly enriched. (But see Restatement of Restitution, sec. 1(e).) In Glen Falls Indemnity Co. v. Golden, D.C.D.C. (1957), 148 Fed. Supp. 41, 43, the court was confronted with the same question presented here, namely, whether relief in unjust enrichment would be afforded under a complaint alleging fraud. In answering this question in the affirmative, the federal court stated:
*389 “The Federal Rules of Civil Procedure, Rule 54(c), 28 U.S.C.A., have carried this principle [ (that equity may adjust its relief to the proof) ] into civil actions generally and expressly provide that a party is not bound by his prayer for relief but may receive such relief as the proof shows him to be entitled to.”
Reversed with costs and remanded for new trial.
(Note: McNamee, J., having become a member of the court after argument and submission of the case, did not participate in the foregoing opinion.)
