public async Task <int> AddToCartAsync(Product product, int qty = 1)
 {
     return(await shoppingCartRepository.AddToCartAsync(product, qty));
 }
Beispiel #2
0
 public async Task AddToCartAsync(ProductItem productItem, ComboMeal comboMeal, CustomizeProduct customizeProduct, int quantity, string shoppingCartId)
 {
     await _shoppingCartRepository.AddToCartAsync(productItem, comboMeal, customizeProduct, quantity, shoppingCartId);
 }
 public async Task AddToCartAsync(Pizza pizza, int amount)
 {
     await _shoppingCartRepository.AddToCartAsync(pizza, amount);
 }