Пример #1
0
        public List <PrintedTicket> GetOldPrintedTickets()
        {
            List <Ticket>        OldTickets        = GetOldTickets();
            List <PrintedTicket> OldPrintedTickets = new List <PrintedTicket>();

            using (var context = new PolyclinicDBContext())
            {
                foreach (Ticket ticket in OldTickets)
                {
                    OldPrintedTickets.Add(iCRUDMethods.GetFullTicket(ticket.id));
                }
            }

            return(OldPrintedTickets);
        }
Пример #2
0
 public PrintedTicket GetFullTicket(int ticketId)
 {
     return(iCRUDMethods.GetFullTicket(ticketId));
 }