Пример #1
0
        public void ChangeQuantity(Product product, int index, int quantity)
        {
            var item = CustomerPurchaseItems.First(x => x.ProductID == index);

            item.Quantity = quantity;
        }
Пример #2
0
        public void RemoveFromCart(Product product, int index)
        {
            var item = CustomerPurchaseItems.First(x => x.ProductID == index);

            CustomerPurchaseItems.Remove(item);
        }