Beispiel #1
0
 /// <summary>
 /// Update or insert a product item in the customers shopping basket
 /// </summary>
 /// <param name="repository">The repository where this item is stored</param>
 /// <param name="item">The product item to upsert</param>
 /// <returns></returns>
 public BasketItem UpsertItemToBasket(BasketItem item, [Service] IBasketRepository repository) => repository.Add(item);
Beispiel #2
0
 public void Update(BasketItem item) => _basket[item.BasketItemId] = item;