public override int GetHashCode() { int hashCode = 17; hashCode = (hashCode * 11) + DiscountID?.GetHashCode() ?? 0; hashCode = (hashCode * 11) + DiscountSequenceID?.GetHashCode() ?? 0; return(hashCode); }
public bool Equals([AllowNull] Discount other) { return(other != null && DiscountID.Equals(other.DiscountID)); }