(a) The court or the state agency shall award a private real property owner who prevails in a suit or contested case filed under this subchapter reasonable and necessary attorney's fees and court costs.
(b) The court or the state agency shall award a governmental entity that prevails in a suit or contested case filed under this subchapter reasonable and necessary attorney's fees and court costs.