Ejemplo n.º 1
0
        public ActionResult SetLocationAndGotoFilmOverview(String locationName)
        {
            CinemaViewModel model = (CinemaViewModel)TempData["model"];

            if (locationName == null)
            {
                model.SelectedLocation = model.findLocationByName("Breda");
            }
            else
            {
                model.SelectedLocation = model.findLocationByName("Breda");
            }

            TempData["model"] = model;
            return(RedirectToAction("filmOverview", "FilmOverview"));
        }
Ejemplo n.º 2
0
        public ActionResult SetLocationAndReturn(String locationName)
        {
            CinemaViewModel model = (CinemaViewModel)TempData["model"];

            if (locationName != null && model != null)
            {
                model.SelectedLocation = model.findLocationByName(locationName);
            }
            else if (model == null)
            {
                return(RedirectToAction("Index", "Home"));
            }
            else
            {
                model.SelectedLocation = model.findLocationByName("Breda");
            }

            TempData["model"] = model;
            return(RedirectToAction("Contact", "Contact"));
        }