Esempio n. 1
0
        public bool checkSeat(int showID, int row, int number)
        {
            bool OK = false;

            TicketRepository ticketRep = new TicketRepository();
            var data = ticketRep.checkSeat(showID, row, number);

            if (data == null)
            {
                OK = true;
            }
            else
            {
                OK = false;
            }

            return(OK);
        }
Esempio n. 2
0
        public IQueryable <Ticket> getTickets(string searchString)
        {
            TicketRepository ticketRep = new TicketRepository();

            return(ticketRep.getTickets(searchString));
        }
Esempio n. 3
0
        public int getCountTickets(int showID)
        {
            TicketRepository ticketRep = new TicketRepository();

            return(ticketRep.getCountTickets(showID));
        }