public ActionResult remove_from_cart(string id) { var item = cart_Service.GetCartItems().FirstOrDefault(x => x.cart_item_id == id); if (item != null) { cart_Service.RemoveItemFromCart(id: id); return(RedirectToAction("ShoppingCart")); } else { return(RedirectToAction("Not_Found", "Error")); } }