//[HttpPost] public IActionResult RemoveFromCart(int id) { var cartItem = _cartItemService.GetByID(id); var UserID = _userManager.GetUserId(User); _cartService.DeleteItemFromCart(cartItem, UserID); return(RedirectToAction("Index")); }
//[HttpPost] public IActionResult RemoveFromCart(int id) { var cartItem = _cartItemService.GetByID(id); var UserID = _userManager.GetUserId(User); _cartService.DeleteItemFromCart(cartItem, UserID); return(RedirectToAction("Index")); }