public void Add (CartItem item) { _Items.Add(item); ApplyEvent(new ItemAddedToCart() { Id = item.Id, ProductId = item.ProductId, Quantity = item.Quantity }); }
public void Remove (CartItem item) { _Items.Remove(item); }