public BasketInRecipt(ReceiptData recipt, int reciptID, ICollection <ProductData> products) : base(products) { this.recipt = recipt ?? throw new ArgumentNullException(nameof(recipt)); this.reciptID = reciptID; }
public bool Equals(ReceiptData other) { return(this.receiptID == other.receiptID); }