Example #1
0
 public void RemoveItem(BasketItem item)
 {
     Items.Remove(GetItemByProductId(item.ProductId));
     CalculateTotalPriceBasket();
 }
Example #2
0
 public bool ExistingItem(BasketItem item) => Items.Any(a => a.ProductId == item.ProductId);
Example #3
0
 public void UpdateQuantity(BasketItem item, int qty)
 {
     item.UpdateQty(qty);
     UpdateItem(item);
 }