public ContentResult PrintPaymentTicketsHtml(int id, int month) { var consortium = ConsortiumService.GetConsortium(id); var tickets = ConsortiumService.GetConsortiumAccountStatusSummary(id, month); var paymentTickets = Mapper.Map <IList <PaymentTicket> >(tickets); return(Content(PaymentTicketService.GetTickets(consortium, paymentTickets, month).HtmlTickets.ToString())); }
public FileResult PrintPaymentTicketsPDF(int id, int month) { var consortium = ConsortiumService.GetConsortium(id); var tickets = ConsortiumService.GetConsortiumAccountStatusSummary(id, month); var paymentTickets = Mapper.Map <IList <PaymentTicket> >(tickets); var htmlTickets = PaymentTicketService.GetTickets(consortium, paymentTickets, month); return(File(PaymentTicketService.GetPDFTickets(htmlTickets), "application/pdf")); }