public virtual void Patch(CouponEntity target) { if (target == null) throw new NullReferenceException(nameof(target)); target.Code = this.Code; target.ExpirationDate = this.ExpirationDate; target.MaxUsesNumber = this.MaxUsesNumber; }
public virtual void Patch(CouponEntity target) { if (target == null) { throw new ArgumentNullException(nameof(target)); } target.Code = Code; target.ExpirationDate = ExpirationDate; target.MaxUsesNumber = MaxUsesNumber; target.MaxUsesPerUser = MaxUsesPerUser; }