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