Ejemplo n.º 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);
        }