//******************************************************************************** //******************************************************************************** // Override Functions #region override_functions_region //******************************************************************************** public override bool Equals(object obj) { if (obj == null) { return(false); } if (obj.GetType() != this.GetType()) { return(false); } ProductUpdate temp = (ProductUpdate)obj; return(this.ProductId == temp.ProductId && this.QuantityToBeRemoved == temp.QuantityToBeRemoved); }
public CartUpdate(string email, ProductUpdate productUpdate) { this.Email = email; this.productUpdate = productUpdate; }
//******************************************************************************** //******************************************************************************** // Constructors //******************************************************************************** public CartUpdate() { this.Email = ""; this.productUpdate = new ProductUpdate(); }