Exemplo n.º 1
0
 public ActionResult ViewCart(IEnumerable <ViewModel.ProductPicked> item)
 {
     if (ModelState.IsValid)
     {
         SessionHelper session = new SessionHelper();
         cartRepo.UpdateShoppingCart(session.SessionID, item);
         return(RedirectToAction("SaveOrder", "Home", new { sessionID = session.SessionID }));
     }
     else
     {
         return(RedirectToAction("ViewCart", "Home", Session.SessionID));
     }
 }