Exemplo n.º 1
0
        //********************************************************************************



        //********************************************************************************
        // 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);
        }
Exemplo n.º 2
0
 public CartUpdate(string email, ProductUpdate productUpdate)
 {
     this.Email         = email;
     this.productUpdate = productUpdate;
 }
Exemplo n.º 3
0
        //********************************************************************************


        //********************************************************************************
        // Constructors
        //********************************************************************************
        public CartUpdate()
        {
            this.Email         = "";
            this.productUpdate = new ProductUpdate();
        }