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