No state officer or employee shall accept or agree to accept compensation, or any part thereof, for employment in a representation case of any kind, before a state agency, except workmen's compensation cases, which is contingent upon the result achieved or attained.
K.S.A. 46-240