public ScreeningMoviesVM(IMovieRepo movieRepo, IHallRepo hallRepo, Screening screening) { this.Screening = screening; this.Movie = new SelectList(movieRepo.GetMoviesAsync().Result, "Id", "Title", screening.Movie_Id); this.Hall = new SelectList(hallRepo.GetHallsAsync().Result, "Id", "Name", screening.Hall_Id); }
// GET: Hall public async Task <ActionResult> Index() { var halls = await _hallRepo.GetHallsAsync(); return(View("Index", halls)); }