Beispiel #1
0
        public ActionResult Edit(int id)
        {
            var screening        = _screeningRepo.GetScreeningById(id).Result;
            ScreeningMoviesVM vm = new ScreeningMoviesVM(_movieRepo, _hallRepo, screening);

            return(View(vm));
        }
Beispiel #2
0
        public ActionResult Create()
        {
            //ViewBag.listMovies = _movieRepo.GetAllTitles().Result;
            //ViewBag.listHalls = _hallRepo.GetAllHallNamesAsync().Result;

            var screening        = new Screening();
            ScreeningMoviesVM vm = new ScreeningMoviesVM(_movieRepo, _hallRepo, screening);

            return(View(vm));
        }