private decimal CalculateItemDiscount(Product product, CartItem item) { return(Promotions.Keys.Contains(product.Id) ? Promotions[product.Id].CalculateDiscount(product, item.Quantity) : 0); }
public void AddItem(CartItem item) { Items.Add(item); }