Пример #1
0
        public IActionResult RemoveProduct(int id)
        {
            CardHelper.RemoveProduct(HttpContext, id);
            string referer = Request.Headers["Referer"].ToString();

            return(Redirect(referer));
        }
Пример #2
0
 public IActionResult RemoveProduct(int id)
 {
     CardHelper.RemoveProduct(HttpContext, id);
     return(RedirectToAction("Index"));
 }