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