(b) A public agency whose governing body is adjudged in a civil action to have conducted a meeting in violation of the provisions of this article may be liable to a prevailing party for fees and other expenses incurred by that party in connection with litigating the issue of whether the governing body acted in violation of this article, unless the court finds that the position of the public agency was substantially justified or that special circumstances make an award of fees and other expenses unjust.
(c) Where the court, upon denying the relief sought by the complaining person in the action, finds that the action was frivolous or commenced with the primary intent of harassing the governing body or any member thereof or, in the absence of good faith, of delaying any meetings or decisions of the governing body, the court may require the complaining person to pay the governing body's necessary attorney fees and expenses.