Exemple #1
0
        public void AddTicketBl(int noTickets, String title, int row, int seat, DateTime date)
        {
            tdao = new TicketDAO();
            fdao = new FilmDAO();
            Film existentfilm = new Film(fdao.GetFilm(title).title, fdao.GetFilm(title).production, fdao.GetFilm(title).distribution, fdao.GetFilm(title).premiereDate, fdao.GetFilm(title).scheduledHour, fdao.GetFilm(title).deadline, fdao.GetFilm(title).noOfTickets);

            fdao.UpdateFilm(existentfilm.title, existentfilm.production, existentfilm.distribution, existentfilm.premiereDate, existentfilm.scheduledHour, existentfilm.deadline, existentfilm.noOfTickets + noTickets);
            tdao.InsertTicket(noTickets, title, row, seat, date);
        }
Exemple #2
0
 public void UpdateFilmBl(String title, String production, String distribution, DateTime premiereDate, int hour, DateTime deadline, int tickets)
 {
     fdao = new FilmDAO();
     fdao.UpdateFilm(title, production, distribution, premiereDate, hour, deadline, tickets);
 }