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);
 }
Exemple #2
0
        // GET: Hall
        public async Task <ActionResult> Index()
        {
            var halls = await _hallRepo.GetHallsAsync();

            return(View("Index", halls));
        }