public ReservationController(IReservationRepo reservationRepo, ApplicationDbContext context, IScreeningRepo screeningRepo, IMovieRepo movieRepo, IHallRepo hallRepo)
 {
     this._reservationRepo = reservationRepo;
     this._context         = context;
     this._movieRepo       = movieRepo;
     this._hallRepo        = hallRepo;
     this._screeningRepo   = screeningRepo;
 }
 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 #3
0
 public HallController(IHallRepo hallRepo, ApplicationDbContext context)
 {
     this._hallRepo = hallRepo;
     this._context  = context;
 }
 public ScreeningRepo(ApplicationDbContext context, IHallRepo hallRepo, IMovieRepo movieRepo)
 {
     this._context = context;
 }
Exemple #5
0
 public ScreeningController(IScreeningRepo screeningRepo, IMovieRepo movieRepo, IHallRepo hallRepo)
 {
     this._movieRepo     = movieRepo;
     this._hallRepo      = hallRepo;
     this._screeningRepo = screeningRepo;
 }
Exemple #6
0
 public ReservationRepo(ApplicationDbContext context, IHallRepo hallRepo, IMovieRepo movieRepo)
 {
     this._context = context;
 }