Before commencing any action for damages caused by the trespass of any livestock, the person sustaining damages, if the person knows to whom the livestock belongs and the owner is a resident of, and is present in, the county in which the trespass occurred, shall notify the owner, or the person having the livestock in charge, of the nature and extent of the damage.
N.D.C.C. § 36-11-12