public ActionResult Increment(int id) { var product = cart.GetShoppingCart.ShoppingCartItems.Where(i => i.ProductId == id); if (product.FirstOrDefault().Quantity == 6) { return(RedirectToAction("Checkout")); } cart.IncrementItem(id); return(RedirectToAction("Checkout")); }