If land or buildings leased by a county or by the county fair board or nonprofit operating corporation for fair grounds is owned by any other public corporation or subdivision, a lease thereof may be made for any period not to exceed ninety-nine years and all public corporations or subdivisions are hereby authorized to make such lease contracts, and to include purchase options therein, or to sell under contract for deed or otherwise or to make a gift of such property to any of the foregoing entities as in the discretion of the governing bodies might best serve the public interest.
SDCL 7-27-6