예제 #1
0
        public IActionResult DeleteProductFromCart(int productId)
        {
            int userId = Convert.ToInt32(User.Claims.FirstOrDefault(c => c.Type == "UserID")?.Value);

            _cartLogic.DeleteProductFromCart(userId, productId);
            return(RedirectToAction("Cart", "Cart"));
        }