public async Task ClearCart(long cartId) { try { var cartItems = await _shoppingCartItemService.GetList(x => x.ShoppingCart_Id == cartId); _shoppingCartItemService.Delete(cartItems); } catch (Exception) { throw; } }
public async Task ClearCart(long cartId) { try { var cartItems = await _shoppingCartItemService.GetList(x => x.ShoppingCart_Id == cartId); _shoppingCartItemService.Delete(cartItems); } catch (Exception) { throw; } }