예제 #1
0
        public IActionResult RemoveAllOfItem(int Id)
        {
            var selectedProduct = _productRepository.GetProduct(Id);

            if (selectedProduct != null)
            {
                _shoppingCart.RemoveAllOfItem(selectedProduct);
            }

            return(RedirectToAction("CartDisplay", "Cart"));
        }