public ActionResult Create(ShoppingCartItem shoppingcartitem) { if (ModelState.IsValid) { shoppingcartitemRepository.InsertOrUpdate(SetCartID(shoppingcartitem, _cartID)); shoppingcartitemRepository.Save(); return(RedirectToAction("Index")); } else { ViewBag.PossibleProducts = productRepository.All; return(View()); } }