OPINION
BILLINGS, Judge:
Appellant Govert Copier Painting (“Copier Painting”) appeals from a summary judgment dismissing its suit to recover for painting the interior of appellee Craig Van Leeuwen's (“Van Leeuwen”) home.
In the summer of 1985, Van Leeuwen and Fred Copier discussed the interior painting of a home Van Leeuwen was constructing for himself. After several conversations, Van Leeuwen entered into an oral agreement with Fred Copier to paint the home. Fred Copier purchased the materials and began painting on December 3, 1985.
Fred Copier ceased painting on February 14, 1986, before the interior painting was finished, because the house was not yet completed. Fred Copier and Van Leeuwen agreed that Fred Copier would leave materials so Van Leeuwen could complete the painting himself. Fred Copier delivered a bill to Van Leeuwen on February 14, 1986, and a dispute arose concerning the amount owed. It is unclear exactly when the painting of the home was completed. Fred Copier contends he saw subcontractors working at the home after July 1, 1986, and infers from that fact that the painting must have been completed after July 1, 1986.
On February 25, 1986, Fred Copier filed a notice of mechanics’ lien under the name of Govert Copier Painting (“Copier Painting”), listing himself as “Managing partner for Govert Copier Painting.” In the notice of lien, Fred Copier listed the date the last labor was performed and materials furnished as February 14, 1986.
Copier Painting purports to be a Utah partnership consisting of two partners, Go-vert Copier and his son, Fred Copier. The partnership is not registered to do business in the State of Utah, nor is the partnership licensed by the State of Utah as a painting contractor. Govert Copier has been a licensed painting contractor in Utah continuously since 1958. Fred Copier is not and has never been a licensed painting contractor.
On June 23, 1987, Copier Painting commenced this action, requesting (1) foreclosure of its mechanics’ lien, (2) compensation on the oral contract, and (3) in the alternative, compensation under the theory of unjust enrichment. The trial court granted summary judgment on the mechanics’ lien claim finding it untimely. The court later dismissed the remaining claims, finding that an unlicensed contractor is barred from suing for compensation by Utah Code Ann. § 58A-la-13 (1986).
Copier Painting appeals, claiming the trial court erred in (1) its calculation of the one-year statute of limitations period under the Utah Mechanics’ Lien Act; (2) barring the company’s contract claim because Go-vert Copier was a duly licensed painting contractor; and (3) dismissing the unjust enrichment claim. Van Leeuwen also appeals the amount of attorney fees awarded by the trial court and requests attorney fees incurred on appeal. We affirm in part and reverse and remand in part.
Summary judgment is appropriate only when “there is no genuine issue as to any material fact and the moving party is entitled to a judgment as a matter of law.” Utah R.Civ.P. 56(c). “When reviewing an appeal from summary judgment, we construe the facts and view the evidence in the light most favorable to the losing party.” Parents Against Drunk Drivers v. Gray-stone Pines Homeowners’ Assoc., 789 P.2d 52, 54 (Utah Ct.App.1990); see also Washington Nat’l Ins. Co. v. Sherwood Assocs., 795 P.2d 665, 666 (Utah Ct.App.1990). Thus, if the parties dispute a genuine issue of material fact, we must reverse a summa[167]*167ry judgment and remand for a determination of that issue. Parents Against Drunk Drivers, 789 P.2d at 54; see also Atlas Corp. v. Clovis Nat’l Bank, 737 P.2d 225, 229 (Utah 1987). We may also reappraise a trial court’s legal conclusions as summary judgment is a matter of law, not fact. Parents Against Drunk Drivers, 789 P.2d at 54; see also Atlas Corp., 737 P.2d at 229.
STATUTORY BAR TO RECOVERY BY UNLICENSED CONTRACTOR
Copier Painting claims Fred Copier and his father, Govert Copier, have a painting partnership and because Govert Copier is a licensed painting contractor, Fred can perform work under his father’s license. Copier Painting thus claims the district court erred in finding Utah Code Ann. § 58A-la-13 (1986) was a bar to its suit to recover on its painting contract.1 Van Leeuwen concedes only for purposes of Copier Painting’s appeal of Van Leeuwen’s successful summary judgment motion that Copier Painting is a partnership and was the contractor which performed the painting contract at issue. He does so because he claims this court can affirm the summary judgment, even conceding these disputed issues of fact, because the contractor, Copier Painting partnership, was unlicensed, the only person licensed being Go-vert Copier individually.
The dissent accepts the facts that a partnership exists with Fred and Govert Copier as partners and that this partnership was the painting contractor which performed the work on Van Leeuwen’s home. Based on these facts the dissent would hold, as a matter of law, that the statutory bar preventing unlicensed contractors from recovering, § 58A-la-13 (1986), does not apply. The dissent finds that since Fred Copier performed the work and claims to be a partner with his father, a licensed contractor, Fred is a licensed contractor not subject to the statutory bar. The dissent decides an issue that is simply not properly before us on this appeal from the court’s grant of summary judgment.
Van Leeuwen did not concede before the trial court that Copier Painting is in fact a partnership with Fred Copier as one of its partners. Rather, Van Leeuwen hotly contested these facts. On appeal, he cites facts from the record before the trial court to support the contrary conclusion: that Copier Painting was not registered to do business as a partnership; that he was never told of any partnership, but rather assumed he was dealing solely with Fred Copier; that he in fact understood Govert Copier had retired and was no longer involved with painting; that Fred Copier never held himself out as a member of a partnership or any other business entity. We disagree with the dissent that parties may not concede certain disputed factual issues merely to expedite the resolution of a legal issue and then re-assert these factual issues if the legal ruling on a motion for summary judgment is not in their favor.
Van Leeuwen’s position before the trial court was that the painting contract was entered into and performed by Fred Copier and the attempt to use Govert Copier’s individual license was an afterthought to avoid the statutory bar. The trial judge in his oral ruling granting Van Leeuwen’s motion for summary judgment states “the court is of the opinion that the motion for summary judgment should be granted at this time. I think the records-affidavit support the defendant’s proposition in regards to the fact that Fred Copier is not a partnership.” The court continues “Fred Copier himself contracted with Van Leeuwen and he is not a licensed contractor and so he cannot sue under the statute.”
We believe the dissent’s contention that the trial court’s denial of Van Leeu-wen’s earlier motion to dismiss on the grounds that Fred Copier, not Copier Painting, was the real party in interest establishes as the law of the case the fact that Copier Painting, not Fred Copier, was the contractor is incorrect. The denial of a [168]*168motion to dismiss with no findings or statement of grounds establishes no law of the case such that all facts which may have been relevant to the decision are after-wards undisputed. The dissent’s conclusion that the denial of this motion to dismiss eliminates all the disputed issues of fact concerning who the contractor actually was is simply an inappropriate reaching out to support a desired result on appeal and to inappropriately restrict a trial court’s actions on remand.
In conclusion, we believe the dissent misconstrues the record before us and thus erroneously concludes that the undisputed facts demonstrate that Copier Painting, a Utah partnership, was the contractor and “was ‘properly licensed’ and is therefore not barred by section 58A-la-13.”
To resolve this dispute, we analyze the regulatory scheme which bars unlicensed contractors from recovering.
Utah Code Ann. § 58A-la-13 (1986) provides:
No contractor may act as agent or commence or maintain any action in any court of the state for collection of compensation for the performance of any act for which a license is required by this chapter without alleging and proving that he was a properly licensed contractor when the contract sued upon was entered into and when the alleged cause of action arose,2
Under this statute, Copier Painting has the burden to prove it is a properly licensed contractor before it can sue for compensation. Utah Code Ann. § 58A-la-13 (1986).
Copier Painting argues that the partnership complied with section 58A-la-13 because its partner, Govert Copier, was licensed and he supervised the work of his partner and son, Fred Copier. Copier Painting claims that forfeiture of a valid claim for failure to obtain a contractor’s license should not be mechanically applied. It cites several Utah Supreme Court cases which have refused to apply the common law rule of non-recovery developed under the previous statute, Utah Code Ann. § 58-23-1 (1967).3 See Loader v. Scott Constr. Co., 681 P.2d 1227, 1230 (Utah 1984) (non-recovery rule not imposed because the defendant was a licensed contractor so was not a member of the protected class, the unlicensed contractor fully performed the contract and defendant would be unfairly benefited by avoiding payment, and the unlicensed contractor’s unlicensed status was the result of a good faith mistake); Kinkella v. Baugh, 660 P.2d 233, 236 (Utah 1983) (because the unlicensed contractor’s son was licensed and supervised the project, the plaintiff received the protection of the licensing statute); Lignell v. Berg, 593 P.2d 800, 805 (Utah 1979) (the unlicensed contractor inadvertently permitted his license to lapse which did not affect his competence; the owners did not rely on his competence; and he had supplied a performance bond; thus, the owners were protected); Fillmore Prods, v. Western States Paving, Inc., 561 P.2d 687, 689 (Utah 1977) (a licensed contractor could not invoke the non-recovery rule because unlicensed contractor’s work [169]*169met all specifications of the general contract and the entire project was under the supervision of a licensed project engineer).
Van Leeuwen responds that the adoption of the statutory bar nullified all of the exceptions developed under the common law rule and that section 58A-la-13 must be strictly applied.4 Utah case law, however, is contrary to Van Leeuwen’s position.
In Pacific Chromalox Div. v. Irey, 787 P.2d 1319 (Utah Ct.App.1990), this court interpreted a similar engineering licensing statute which barred unlicensed engineers from bringing actions. The court concluded that case law developed under the prior common law prohibition on recovery by unlicensed vendors was still relevant after adoption of the statutory bar. Id. at 1326. The court reasoned that the statutory prohibition to recovery simply adopted the pri- or common law non-recovery rule and thus the statutory prohibition should be read to implement the purpose of protecting the public while not becoming “an unwarranted shield for the avoidance of a just obligation.” Id. at 1326.
The Utah Supreme Court dealt with the statute barring suits by unlicensed contractors in Wilderness Bldg. Sys., Inc. v. Chapman, 699 P.2d 766 (Utah 1985). The supreme court did not directly hold that prior common law excusing non-compliance in certain circumstances was still relevant to the statutory prohibition, but by its treatment of the case suggested its applicability. The plaintiffs in Wilderness argued that two exceptions developed under the common law non-recovery rule should be applied to avoid the statutory bar. Id. at 768-69. In addition, the plaintiffs argued that an unlicensed contractor could recover under the theory of unjust enrichment. Id. at 768.5 The court did not simply conclude that the contractor was barred by the statute as he was unlicensed, but rather proceeded to review the common law doctrines excusing strict compliance, finding that none applied under the facts presented on appeal. Id. at 768-69.6
We are persuaded that the adoption of section 58A-la-13, which bars actions by unlicensed contractors, does not preclude the application of the previous common law exceptions to the general rule of non-recovery.
EXCEPTIONS TO STATUTORY BAR
The dissent agrees with us that the prior common law exceptions are still [170]*170relevant to an analysis under section 58A-la-13 of whether a contractor should be barred from recovering. The dissent then claims that Copier Painting, as a matter of law, falls within one of the prior common law exceptions to section 58A-la-13, finding that Van Leeuwen was not within the class the statute was intended to protect because he himself was an unlicensed general contractor. Thus, in effect, the dissent would grant a motion for partial summary judgment in favor of Copier Painting which in fact was never filed, briefed or argued to the trial court. Reversing the decision of a trial court is appropriate if the court was in error. However, it is not appropriate to not only reverse the trial court’s granting of summary judgment for one party on one legal issue, but then to sua sponte grant the opposing party summary judgment on a separate and unlitigat-ed legal issue when no cross motion for summary judgment was before the district court.
The dissent adopts this extraordinary procedure because it claims the exception to the statutory bar it employs is grounded upon “the undisputed facts which were before the trial court.” The “undisputed facts” the dissent relies upon are extracted from an affidavit filed in support of an earlier motion to dismiss filed by Van Leeuwen and an interrogatory answer buried in the record on appeal. Neither this affidavit nor the interrogatories were included in the materials supplied to the judge when he decided Van Leeuwen’s Motion for Summary Judgment. We will not consider facts on appeal when there is no record the trial judge had access to those facts when deciding the motion at issue. Conder v. A.L. Williams and Associates, 739 P.2d 634, 636 (Utah Ct.App.1987); Alford v. Utah League of Cities and Towns, 791 P.2d 201, 206 n. 3 (Utah Ct.App.1990). Furthermore, the portions of the affidavit relied upon by the dissent do not clearly establish that Van Leeuwen was an unlicensed contractor. The dissent takes one sentence out of context to support its bold assertion that Van Leeuwen himself was acting as an unlicensed contractor in building his home: “Van Leeuwen and his brother were involved in constructing homes from 1983 to 1986.” The remainder of the evidence properly before the court establishes all homes were constructed for and moved into by Van Leeuwen. Furthermore, there is nothing in the record to verify whether Van Leeuwen used licensed contractors to perform the work on his homes or whether he ever constructed more than one house in a year such that he was required to become a licensed contractor.
Whether the particular exception to the statutory bar adopted by the dissent applies must first be decided by the district court when it has the critical facts before it and has access to the properly focused arguments of counsel. We thus proceed to analyze this limited appeal of the propriety of the court’s granting of Van Leeuwen’s motion for summary judgment based upon the legal issues raised by the parties and the facts which were before the trial court and thus which are proper for our consideration on appeal.
In order to recover on its contract claim, Copier Painting must demonstrate that despite its failure to have a contractor’s license, the purpose of the licensing statute was met—the protection of the public. The prior Utah common law exceptions all are grounded on this general requirement. As long as the defendant is otherwise protected there is no need for rigid insistence on the plaintiff’s proper licen-sure. The Utah Supreme Court has allowed an unlicensed contractor to recover “from one who is otherwise protected from the harm the licensing requirements were designed to prevent,” such as where the contracting party is himself a licensed contractor, Wilderness Bldg. Sys., Inc. v. Chapman, 699 P.2d 766, 768 (Utah 1985); see also Lignell v. Berg, 593 P.2d 800, 805 (Utah 1979), or where the work of the unlicensed contractor is supervised by a licensed contractor. See Kinkella v. Baugh, 660 P.2d 233, 236 (Utah 1983); Motivated Management Internat'l v. Finney, 604 P.2d 467, 468 (Utah 1979).
[171]*171In determining whether the purposes of the licensing statute were met, Utah’s courts have also considered the reason a contractor was unlicensed an important factor. In Loader v. Scott Constr. Co., 681 P.2d 1227 (Utah 1984), the court dealt with an unlicensed contractor who mistakenly believed he could perform work under his former partner’s license. The Utah Supreme Court found that this was not a “willful disregard of the licensing statute.” Id. at 1229-30. The court concluded that the good faith of the contractor in believing he was operating under a license was “one factor [to] consider in determining the [non-recovery] rule’s application.” Id. at 1230.
A majority of courts from other jurisdictions, with statutes similar to Utah’s prohibiting actions by unlicensed contractors, have adopted a rule consistent with Utah’s prior common law.7
Under the facts in the record, although disputed, Copier Painting claims it believed in good faith it could operate under the contractor’s license of one of its partners; that Govert Copier, the licensed partner, supervised the work performed by Fred Copier; and that Copier Painting performed the contract and Van Leeuwen would be unfairly benefited by avoiding payment. Based upon these disputed facts,8 we reverse and remand on the issue of denial of recovery on the contract claim as there are material issues of fact as to whether Van Leeuwen was adequately protected from the harms the licensing statute was meant to prevent despite the failure of Copier Painting to be licensed as a partnership.
QUANTUM MERUIT
Copier Painting on appeal also claims that even if it cannot recover on its contract claim, it should be allowed to recover in quantum meruit. We do not reach this issue as we have reversed for a determination of Copier Painting’s right to recover on its contract claim. We note, however, that it is doubtful that a Utah contractor, barred from bringing suit under section 58A-la-13, can still, under appropriate circumstances, recover in quantum meruit.9 [172]*172In addition, we do not reach the issue of the proper measure of recovery if Copier Painting is allowed to recover on its contract claim.10
TIMELINESS UNDER UTAH MECHANICS’ LIEN STATUTE
Copier Painting also claims the trial court erred in finding the one-year limitation on actions to foreclose mechanics’ liens barred its mechanics’ lien action. Copier Painting contends that even though it performed its last work on its contract with the owner on February 14, 1986, it furnished materials to Van Leeuwen that were not used until after July 1, 1986. Thus, Copier Painting argues that the filing of this action on June 23, 1987, was within the one-year statutory period.
Utah’s mechanics’ lien statute, Utah Code Ann. § 38-1-11 (1988), provides, in pertinent part: “Actions to enforce the liens herein provided for must be begun within twelve months after the completion of the original contract,11 or the suspension of work thereunder for a period of thirty days.” The burden of proof is on Copier Painting to prove that it is entitled to the lien and has complied with the statute. See Martindale v. Adams, 111 P.2d 514, 516 (Utah Ct.App.1989); Hathaway v. United Tintic Mines Co., 42 Utah 520, 132 P. 388 (1913).
[173]*173The Utah Supreme Court has held that when a contractor finishes his or her work on a job, the statutory period begins to run. In AAA Fencing Co. v. Raintree Dev. & Energy Co., 714 P.2d 289 (Utah 1986) (per curiam), the Utah Supreme Court stated: “The time for enforcing mechanics’ liens set out in section 38-1-11 ... limits a lien- or’s rights to twelve months after his work is completed. At that point, both his rights and his remedies under the statute are extinguished.” Id. at 292 (emphasis added). See also Roberts v. Hansen, 25 Utah 2d 190, 479 P.2d 345, 347 (1971) (Utah Supreme Court found that the date a contractor stops working is the determinative date for statute of limitations purposes).
Copier Painting relies on cases which hold that the statutory period for a mechanics’ lien foreclosure action may be extended if the contractor performs non-trivial work or supplies materials after the majority of the contract is performed. See Tortorica v. Thomas, 16 Utah 2d 175, 397 P.2d 984, 986 (1965); Wilcox v. Cloward, 88 Utah 503, 56 P.2d 1, 6-7 (1936). These cases are factually distinguishable in that Copier Painting did not return to complete the interior painting; rather, Van Leeuwen or other laborers finished the painting.
In this case, Copier Painting stopped working on the house on February 14, 1986, and tendered Van Leeuwen a bill for work. Copier Painting had no plan to return to finish the job because Van Leeuwen and Fred Copier had agreed that Van Leeu-wen would finish the job. At that point, Copier Painting’s work was completed. Significantly the notice of lien lists February 14, 1986, as the date the last work was performed and materials furnished. Thus, Copier Painting had completed the performance on its primary contract on February 14, 1986, and the statutory period began to run on that date. Accordingly, Copier Painting’s filing of this action on June 23, 1987, was untimely under section 38-1-11 as it was not filed within twelve months of the completion of the original contract. See note 11, supra.
VAN LEEUWEN’S CROSS-APPEAL ON ATTORNEY FEES
Van Leeuwen argues that the trial court abused its discretion when the court, in awarding Van Leeuwen its attorney fees as the prevailing party on the mechanics’ lien issue, reduced its requested attorney fees of $1,387.50 to a nominal $100.12
In Utah, attorney fees may be awarded only if authorized by statute or provided for by contract. Dixie State Bank v. Bracken, 764 P.2d 985, 988 (Utah 1988). In this case, Van Leeuwen claimed attorney fees under Utah Code Ann. § 38-1-18 (1988), which provides that “[i]n any action brought to enforce any lien under this chapter the successful party shall be entitled to recover a reasonable attorneys’ fee, to be fixed by the court, which shall be taxed as costs in the action.” See also AAA Fencing Co. v. Raintree Dev. & Energy Co., 714 P.2d 289, 292-93 (Utah 1986) (per curiam).
As a general rule, the trial court has discretion to determine the reasonable attorney fees to be awarded and “we will not overturn the award absent an abuse of discretion.” Regional Sales Agency, Inc. v. Reichert, 784 P.2d 1210, 1215 (Utah Ct.App.1989); see also Dixie State Bank, 764 P.2d at 988.
“An award of attorney fees must be based on evidence in the record which supports the award. However, a trial court is not compelled to accept the self-serving testimony of a party requesting attorney fees even if there is no opposing testimony.” Regional Sales, 784 P.2d at 1215 (citation omitted). A court, when determining what is a reasonable fee, may reduce the amount requested, id., after considering factors such as:
the difficulty of the litigation, the efficiency of the attorneys in presenting the [174]*174case, the reasonableness of the number of hours spent on the case, the fee customarily charged in the locality for similar services, the amount involved in the case and the result attained, and the expertise and experience of the attorneys involved.
Cabrera v. Cottrell, 694 P.2d 622, 625 (Utah 1985); see also Dixie State Bank, 764 P.2d at 989.
“We have consistently encouraged trial courts to make findings to explain the factors which they considered relevant in arriving at an attorney fee award.” Regional Sales, 784 P.2d at 1215. See also Cabrera, 694 P.2d at 624. We have held that unless the court offers an explanation for the reduction of the attorney fees requested in a case where there is adequate and uncontroverted evidence in the record to support the fees, it abuses its discretion. See Regional Sales, 784 P.2d at 1216; Martindale v. Adams, 777 P.2d 514, 518 (Utah Ct.App.1989). See also Dixie State Bank, 764 P.2d at 987-91.
In this case, the trial court reduced the award from the $1,387.50 requested to $100 and stated:
what the court is going to do is grant nominal attorney fees of $100.00 on that. I think it is based on the merits of this case and the fact that defendant has received considerable amount of services for practically nothing, I guess, except attorney[’]s fees.
The trial court, while it explained its reason for reducing the attorney fee award,13 did not utilize the factors established by appellate courts as relevant to a reduction in fees. We therefore reverse and remand for the determination of reasonable attorney fees to be awarded to Van Leeuwen as the prevailing party on the mechanics' lien issue. In addition, Van Leeuwen is entitled to his attorney fees on appeal insofar as attributable to the mechanics’ lien issue. See Nu-Trend Elec., Inc. v. Deseret Fed. Sav. & Loan Assoc., 786 P.2d 1369, 1372 (Utah Ct.App.1990). See also Mountain States Broadcasting Co. v. Neale, 776 P.2d 643 (Utah Ct.App.1989). Thus, the trial court should also determine reasonable attorney fees for services rendered at the trial level and on appeal on the mechanics’ lien issue.14
CONCLUSION
We hold that a contractor is not barred from bringing suit by Utah Code Ann. § 58A-la-13 (1988) if the contractor can establish that, despite its failure to obtain a license, the purpose of the licensing statute — protection of the public — was satisfied. Thus, we reverse the trial court's summary judgment and remand for trial on Copier Painting’s contract claim consistent with the principles set out in this opinion.
We affirm the trial court’s conclusion that Copier Painting’s action to enforce its mechanics’ lien is untimely as it was commenced more than twelve months after Copier Painting completed work on the project.
Further, we find that the trial court abused its discretion when it awarded Van Leeuwen a nominal sum of $100 for attorney fees under Utah Code Ann. § 38-1-18 (1988). We remand for the trial court to determine a reasonable attorney fee using the factors enunciated by Utah appellate courts. In addition, Van Leeuwen is entitled to attorney fees incurred on appeal on the mechanics’ lien issue and the trial court is directed to determine a reasonable attorney fee.
ORME, J., concurs.