Exemple #1
0
 public ControllerClass(CinemaContext db)
 {
     hallDAO   = new HallDAO(db);
     movieDAO  = new MovieDAO(db);
     seanceDAO = new SeanceDAO(db);
     ticketDAO = new TicketDAO(db);
     view      = new ViewClass(hallDAO.GetHalls(), hallDAO.GetSeats());
 }
Exemple #2
0
 public ControllerClass()
 {
     hallDAO        = new HallDAO();
     movieDAO       = new MovieDAO();
     seanceDAO      = new SeanceDAO();
     ticketDAO      = new TicketDAO();
     fullTextSearch = new FullTextSearch();
     view           = new ViewClass(hallDAO.GetHalls(), hallDAO.GetSeats());
 }