If judgment is given for the applicant, the applicant may recover the damages which the applicant has sustained as found by the jury, or as may be determined by the court, or referee upon a reference to be ordered, together with costs, and for such damages and costs execution may issue, and a peremptory mandamus also must be awarded.
N.D.C.C. § 32-34-11