Esempio n. 1
0
        public static List <TicketEntityNew> ViewAllTicketBL(DateTime fromDate, DateTime toDate)
        {
            List <TicketEntityNew> ticketList = null;
            TicketsDAL             ticketDAL  = new TicketsDAL();

            ticketList = ticketDAL.ViewAllTicketDAL(fromDate, toDate);
            return(ticketList);
        }
Esempio n. 2
0
        public static List <TicketEntityNew> MyTicketsDAL(int viewerId)
        {
            List <TicketEntityNew> ticketList = null;
            TicketsDAL             ticketDAL  = new TicketsDAL();

            ticketList = ticketDAL.MyTicketsDAL(viewerId);
            return(ticketList);
        }
Esempio n. 3
0
        public static bool CreateTicketBL(TicketEntity newTicket)
        {
            bool userAdded = false;

            try
            {
                TicketsDAL ticketDAL = new TicketsDAL();
                userAdded = ticketDAL.CreateTicketDAL(newTicket);
            }
            catch (MovieExceptions)
            {
                throw;
            }
            catch (Exception ex)
            {
                throw ex;
            }
            return(userAdded);
        }
Esempio n. 4
0
        public static TicketEntity SearchTicketByIdBL(int id)
        {
            TicketEntity ticket = TicketsDAL.SearchTicketById(id);

            return(ticket);
        }