In any action to enforce any provision of this title, the court shall allow the prevailing plaintiff party, other than the state or political subdivision thereof, a reasonable attorneys' fee, litigation expenses including, but not limited to, expert witness fees and expenses as part of the costs. A plaintiff will be deemed to have prevailed when, as a result of litigation, the defendant party yields much or all of the relief sought in the suit. Prevailing defendant parties shall not recover any costs, unless the court finds the action to be frivolous, unreasonable, or without foundation.
N.Y. Elec. Law § 17-218