public ActionResult DeleteItem(int id) { if (id == 0 || id <= 0) { return(new HttpStatusCodeResult(System.Net.HttpStatusCode.BadRequest)); } var cartItems = cart.DeleteItem(id); CartList cartList = new CartList(); ViewBag.Price = cartList.DeleteTotalPrice(id); return(PartialView(cartItems)); }