Under Gov. Code 800(a), a plaintiff that successfully challenges an administrative decision that was the result of arbitrary or capricious action or conduct by a public entity or officer may recover attorney fees of up to $7,500 in the trial court’s discretion. Even if that statute requires the overturned administrative action to be “wholly” arbitrary and capricious, it does not require that every act taken in the decisionmaking process be arbitrary. Hence, the trial court erred in this case in denying the successful plaintiff fees under section 800 merely because it found the defendant had followed due process-compliant hearing procedures in reaching the result that the trial court had found unsupported by the evidence.