The writ of mandamus may be issued by the supreme and district courts to any inferior tribunal, corporation, board, or person to compel the performance of an act which the law specially enjoins as a duty resulting from an office, trust, or station, or to compel the admission of a party to the use and enjoyment of a right or office to which the party is entitled and from which the party is precluded unlawfully by such inferior tribunal, corporation, board, or person.
N.D.C.C. § 32-34-01