コード例 #1
0
        public async Task ClearCart(long cartId)
        {
            try
            {
                var cartItems = await _shoppingCartItemService.GetList(x => x.ShoppingCart_Id == cartId);

                _shoppingCartItemService.Delete(cartItems);
            }
            catch (Exception)
            {
                throw;
            }
        }