public ActionResult Create(int?theaterId)
        {
            var model = new MovieViewModel();

            if (theaterId.HasValue)
            {
                model.Theater = TheaterManager.GetByTheaterId(theaterId.Value);
            }

            var allRatings = RatingManager.GetAll();
            var allGenres  = GenreManager.GetAll();

            var checkBoxListItems = new List <CheckBoxListItem>();

            model.Ratings = allRatings;

            foreach (var genre in allGenres)
            {
                checkBoxListItems.Add(new CheckBoxListItem()
                {
                    ID        = genre.GenreId,
                    Display   = genre.GenreName,
                    IsChecked = false // On the add view, no genres will be selected by default
                });
            }

            model.Genres = checkBoxListItems;

            ViewBag.AvailableTheaters = TheaterManager.GetAll();

            return(View(model));
        }
        public ActionResult Index()
        {
            var model = TheaterManager.GetAll();

            return(View(model));
        }