A cooperative shall indemnify a director, officer, agent, or employee who was wholly successful, on the merits or otherwise, in the defense of any proceeding to which the director, officer, agent, or employee was a party by reason of being a director, officer, agent, or employee of the cooperative, against reasonable expenses incurred in connection with the proceeding.
SDCL 47-17-23