Esempio n. 1
0
 public void CartDelProduct(SaleViewModel product)
 {
     this.Products.Remove(product);
     this.TotalWithoutDiscount -= product.totalWithoutDiscount;
     this.Discount             -= product.discount;
     this.Total -= product.total;
 }
Esempio n. 2
0
 public void CartAddProduct(SaleViewModel product)
 {
     this.Products.Add(product);
     this.TotalWithoutDiscount += product.totalWithoutDiscount;
     this.Discount             += product.discount;
     this.Total += product.total;
 }