public IActionResult RemoveToCart(int id) { LocalCartHelper.RemoveCart(id); return(Redirect("/shop/cart")); }
// TODO The purchase screen can be added later but for now, it will be directed to the home screen. public IActionResult BuyCart() { LocalCartHelper.ClearCart(); return(Redirect("/")); }
public IActionResult AddToCart(int id) { LocalCartHelper.AddCart(_productService.GetById(id)); return(Redirect("/")); }