Beispiel #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);
        }
Beispiel #2
0
        public IQueryable <Ticket> getTickets(string searchString)
        {
            TicketRepository ticketRep = new TicketRepository();

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

            return(ticketRep.getCountTickets(showID));
        }