If any person through error or inadvertence pays any local assessment, or installment thereof, upon the lands of another, the payor, after demand and refusal, by an action in the district court, may recover from the owner of the lands the amount paid and costs of the action.
W.S. 15-6-443