示例#1
0
        public ActionResult Index(SelectVM model)
        {
            if (ModelState.IsValid)
            {
                // Store Store, Location and capacity
                Session["StoreId"]    = model.StoreId;
                Session["LocationId"] = model.LocationId;

                return(RedirectToAction("Count", "Home"));
            }

            // If we got this far, something failed, redisplay form
            return(View(model));
        }
示例#2
0
        public ActionResult Index()
        {
            SelectVM model = new SelectVM();

            using (var shopSafeEntity = new ShopSafeEntities())
            {
                var stores    = shopSafeEntity.Stores.ToList();
                var locations = shopSafeEntity.Locations.ToList();

                model.Stores    = stores;
                model.Locations = locations;
            }

            return(View(model));
        }
 public SelectScreen(Navigator navigator) : base(navigator)
 {
     selectVM = new SelectVM();
     Start    = new EasyCommand(() => SwitchTo(new GameScreen(navigator, selectVM.SelectedPuzzle.Puzzle)));
 }