Example #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"));
        }
Example #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"));
        }