public void ChangeQuantity(Product product, int index, int quantity) { var item = CustomerPurchaseItems.First(x => x.ProductID == index); item.Quantity = quantity; }
public void RemoveFromCart(Product product, int index) { var item = CustomerPurchaseItems.First(x => x.ProductID == index); CustomerPurchaseItems.Remove(item); }