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); }
public PrintedTicket GetFullTicket(int ticketId) { return(iCRUDMethods.GetFullTicket(ticketId)); }