Example #1
0
        public RedirectToRouteResult RemoveItemCart(CartFunctions cartFunctions, int productId, string url)
        {
            Product product = db.Products.FirstOrDefault(k => k.ProductId == productId);

            if (product != null)
            {
                cartFunctions.RemoveItem(product);
            }
            return(RedirectToAction("CartSummary", new { url }));
        }