Cross-defendant Eden Medical Center (EMC) appeals the trial court's order denying its motion for attorney fees under Civil Code section 1717 (section 1717). The motion was denied after cross-complainant Eden Township Healthcare District (District) unsuccessfully sought declaratory relief to have certain agreements declared illegal and void under
This is the second time we have considered an appeal in this case. (See Eden Township Healthcare Dist. v. Sutter Health (2011) 202 Cal.App.4th 208 [135 Cal.Rptr.3d 802] (Eden I).)
We quote at length from our discussion of the facts in our prior opinion:
"The District is a public agency established in 1948 pursuant to California's Local Health Care District Law (Health & Saf. Code, § 32000 et seq.). The mission of the District is to `fulfill the function of protecting the public health and welfare by furnishing hospital services [and] provid[ing] for the public health and welfare ....' (Talley v. Northern San Diego Hosp. Dist. (1953) 41 Cal.2d 33, 40 [257 P.2d 22], overruled on other grounds in Muskopf v. Corning Hospital Dist. (1961) 55 Cal.2d 211, 213 [11 Cal.Rptr. 89, 359 P.2d 457].) The District's operations are overseen by a board comprised of five publicly elected members.... Prior to 1998, the District owned and operated multiple hospitals in Alameda County, including Eden [Hospital] in Castro Valley.
"Sutter [Health] is a California nonprofit public benefit corporation. Sutter does not own any hospitals. The 24 hospitals with which Sutter is affiliated are owned by other nonprofit public benefit corporations. Sutter is a `member' of each of these nonprofit public benefit corporations, including EMC.
"EMC is a California nonprofit corporation that was formed to operate Eden for the District. EMC also operates SLH [(San Leandro Hospital)],
"In 1997, Sutter purchased Eden from the District for $30 million, plus an assumption of approximately $40 million of District debt. Sutter also invested approximately $65 million in improvements to the hospital campus, including the purchase of adjoining property to expand. Pursuant to a 1997 memorandum of understanding between the District and Sutter (the 1997 MOU), Eden's assets were transferred to EMC, then known as `NewCo.' ...
"By the early 2000's, Eden, which was built in the 1950's, faced the prospect of closure because the facility did not meet current seismic code requirements. To address this problem, the District entered into an agreement in 2004 (the 2004 Agreement) by which EMC agreed to spend at least $262 million to construct a new hospital to replace Eden. Around this time, the District purchased SLH from a third party and leased it to EMC, on the condition that EMC maintain general acute care services at SLH for three years. Sutter guaranteed EMC's obligations under the 2004 Agreement. The 2004 Agreement further provided that if the replacement hospital was not operational by December 2011, EMC would purchase SLH at a price equal to $35 million, minus straight line depreciation.
"In 2006, Sutter notified EMC's board, including the five District board members, that it would not build the contemplated replacement hospital. In November 2006, the District notified respondents that they were in breach of their contractual obligation to the District to construct the replacement hospital. The District claimed Sutter's notification amounted to an anticipatory breach and threatened to sue Sutter for $262 million if it did not provide `adequate written assurance' that it would construct the replacement hospital. [¶] ... [¶]
"The negotiations ultimately resulted in a series of related agreements, including a new memorandum of understanding and an amended and restated lease and hospital operations agreement (the 2008 Lease), which were signed by the parties in March 2008 (collectively, the 2008 Agreements). Under the 2008 Agreements, Sutter committed to spending $300 million to construct the replacement hospital, secured by a $260 million escrow deposit. Additionally,
"Construction of the replacement hospital began on July 15, 2009.
"On July 27, 2009, Sutter exercised its option to purchase SLH. Sutter announced that after it acquired title it planned to lease SLH to another party in order to convert the facility from an acute care emergency services hospital to an acute rehabilitation hospital. According to the District's brief [filed in Eden I], `a newly constituted District board determined that it was not in the best interests of the citizens served by the District to allow [SLH] to be transferred to Sutter and closed as a provider of emergency care services.' The District refused to convey SLH to Sutter, asserting Sutter had breached an obligation to convert the fourth floor of SLH to acute rehabilitation. Sutter then commenced arbitration proceedings against the District.
"On October 27, 2009, Sutter filed a complaint against the District for specific performance of a written agreement to convey real property and for damages. The complaint alleges the District refused to proceed with the sale of SLH, in repudiation and breach of the 2008 Lease and of the purchase and sale agreement that was formed upon Sutter's exercise of the option. Sutter indicated it had filed the action to preserve its rights while the dispute was being arbitrated. The complaint seeks specific performance of the purchase and sale agreement, delay damages for breach of contract, constructive trust, and declaratory relief concerning the parties' rights and duties with respect to the transfer of title to SLH.
"On December 3, 2009, the parties filed a stipulation to stay the lawsuit pending arbitration. The trial court ordered the action stayed.
"On March 8, 2010, the arbitrator issued his decision finding Sutter was entitled to an award of specific performance of its right to a conveyance of SLH. The arbitrator specifically did not rule on the legality of the 2008 Agreements, including the issue of whether any of the agreements had been created in violation of [Government Code] section 1090. The decision preserved the District's right to seek to vacate the award by challenging the validity of the 2008 Agreements.
"Also on March 10, 2010, the District filed a cross-complaint for declaratory and injunctive relief against [Sutter and EMC]. In the declaratory relief action, the District contended that the 2008 Agreements are void under [Government Code] sections 1090 and 1092[
"On April 22, 2010, [Sutter and EMC] filed their answer to the District's cross-complaint.
"On September 15, 2010, the District filed a motion for summary adjudication of its cause of action for declaratory relief, asserting the 2008 Agreements are void under [Government Code] sections 1090 and 1092.
"On September 16, 2010, [Sutter and EMC] filed a motion for summary judgment. [They] contended the District could not establish the elements of its causes of action.... [¶] ... [¶]
"On November 12, 2010, the trial court filed its order granting respondents' motion for summary judgment on the District's cross-complaint and denying the District's motion for summary adjudication." (Eden I, supra, 202 Cal.App.4th at pp. 213-218, fns. omitted.)
On December 21, 2011, we affirmed the trial court's judgment in Eden I, and the Supreme Court denied review.
On May 22, 2012, EMC filed an amended motion for attorney fees and costs.
On August 29, 2012, the trial court filed its order denying EMC's request for attorney fees. The court found the action was not "on a contract" for purposes of section 1717. This appeal followed.
"On appeal this court reviews a determination of the legal basis for an award of attorney fees de novo as a question of law." (G. Voskanian Construction, Inc. v. Alhambra Unified School Dist. (2012) 204 Cal.App.4th 981, 995 [139 Cal.Rptr.3d 286].)
In the present case, we consider whether a party who defends against an action for declaratory and injunctive relief in which the complaining party unsuccessfully asserts that the underlying contract is illegal and invalid may recover its attorney fees from the complaining party.
It is uncontested that EMC is the prevailing party in the underlying action. EMC (and Sutter Health) established that the 2008 Agreements were not made in violation of Government Code section 1090. The basis for an attorney fees award asserted in this case was contractual: EMC requested attorney fees under a clause in the 2008 memorandum of understanding (2008 MOU), which provides: "The prevailing party in any action or proceeding commenced in court for breach of this Agreement shall be entitled to its attorneys' fees, costs, and expenses of experts incurred in prosecuting or defending such action or proceeding." We also note the 2008 MOU specifically incorporates the 2008 Lease.
"Employing this approach, courts have held the phrase `action on a contract' as used in section 1717 includes an action seeking declaratory and injunctive relief to enforce a consent decree [citation] or to avoid enforcement of an arbitration clause [citation]; an action seeking declaratory and injunctive relief and quiet title based on violations of the terms of a promissory note and deed of trust [citation]; an unlawful detainer action based on a lessee's alleged breach of covenants in a lease [citation]; a conversion action based on breach of a safe deposit box contract [citation]; and an action for reformation of a contract [citation]. [¶] In contrast, courts have held the phrase `action on a contract' as used in section 1717 does not include an action asserting only tort claims [citation]; a tort action for fraud arising out of a contract [citation]; an action including a claim labeled breach of contract but not
In its review of pertinent legal authority, the appellate court in Douglas E. Barnhart distilled the following principle: "An action (or cause of action) is `on a contract' for purposes of section 1717 if (1) the action (or cause of action) `involves' an agreement, in the sense that the action (or cause of action) arises out of, is based upon, or relates to an agreement by seeking to define or interpret its terms or to determine or enforce a party's rights or duties under the agreement, and (2) the agreement contains an attorney fees clause." (Douglas E. Barnhart, supra, 211 Cal.App.4th at pp. 241-242.) In the instant case, both of these prongs are satisfied.
By its cross-complaint, the District sought to invalidate the 2008 Agreements. Candidly, it is difficult to think of an action that is more likely to be characterized as an "action on a contract" than one in which the party bringing the action explicitly seeks to have the subject contract declared void and invalid in its entirety. And, as noted above, the 2008 MOU contains a provision for attorney fees and costs.
We addressed an analogous situation in Shadoan v. World Savings & Loan Assn. (1990) 219 Cal.App.3d 97 [268 Cal.Rptr. 207] (Shadoan). In Shadoan, the loan agreement provided: "`if legal action is instituted to enforce any of the terms or provisions of this note, the lender shall be entitled to recover all costs and expenses incurred in bringing such action, including reasonable attorney's fees, the amount of which shall be determined by the Court.'" (Id. at p. 107.) The plaintiffs sued for a refund of a prepayment penalty, both for themselves and on behalf of others, alleging the defendant had committed an unfair business practice in charging the penalty. (Id. at pp. 100-101.) We noted that the plaintiffs' action did not fall within the express provision of the attorney fees clause, because the action was not instituted to enforce a provision of the contract. Nevertheless, we held that the action was "on a contract" (with respect to the plaintiffs' own claim for recovery) because the challenge to the prepayment penalty could have been raised as a defense to an action to enforce the terms of the contract, though the defendant clearly could not have brought such an action because the plaintiffs had already paid the prepayment penalty in accordance with their loan agreement. (Id. at
In Turner, the plaintiff had entered a buy-sell agreement with two other shareholders. (Turner, supra, 175 Cal.App.4th 974, 977.) The agreement contained an arbitration clause stating that in the event a controversy arose out of the buy-sell agreement, the claims would be settled by arbitration. A dispute arose out of the agreement and the two shareholders and the company demanded arbitration. The plaintiff filed two actions seeking to avoid arbitration. (Id. at pp. 977-978.) The two shareholders and the company defeated both actions. (Id. at p. 978.) They then successfully moved for attorney fees. (Ibid.) The appellate court affirmed, holding that fees may be properly awarded under section 1717 to the extent that the action is in fact an action to enforce — or avoid enforcement of — the specific contract. (Turner, at p. 980.)
In the present case, EMC could not have brought a lawsuit for breach of the 2008 Agreements, because the District had performed its obligations. The District filed the instant action to have the 2008 Agreements declared invalid, thereby allowing it to unwind its performance made to satisfy those agreements. Under Shadoan, EMC is entitled to attorney fees, because the same issue could have been raised by the District as a defense to a breach of contract claim. Here, the issue was raised affirmatively in an effort to legitimize the District's position that it would incur no liability if it took actions contrary to the 2008 Agreements. Additionally, we note the District sought attorney fees as against both Sutter and EMC in its cross-complaint. This is strong indicia that the District intended its action to be "on the contract."
The District also contends that the language of the fee provision in the 2008 MOU does not allow attorney fees to be awarded to EMC because it did not commence the cross-complaint for breach of the 2008 Agreements. But the District commenced this action to establish the opposite, namely, that its performance could be unwound, essentially in breach of the 2008 Agreements, because these agreements were void ab initio. Thus, EMC's defense was commenced to uphold the validity of the agreements and, in essence, forestall the District's anticipatory breach.
According to the District, the "necessary step" doctrine applies when a party prevails on a claim or defense that is not "on a contract," but which is a necessary step to enforcing its rights under a contract. In those situations, courts award fees for prevailing on the intermediate (noncontract) claim or defense because the fees were necessarily expended to prevail on the contract. Our own research does not support the existence of this principle as an established "doctrine." Regardless, here there was no intermediate noncontractual step. Instead, EMC was compelled by the District's actions to defensively enforce the 2008 Agreements, thereby obtaining relief from breach of those agreements. Thus the so-called "necessary step" doctrine has no application.
The order is reversed and the matter is remanded to the trial court to award EMC its attorney fees.
Margulies, Acting P. J., and Banke, J., concurred.