public void SaveAuthorsToPdfFile(ReportBindingModel model) { string title = "Авторы и их статьи"; SaveToPdf.CreateDoc(new PdfInfo { FileName = model.FileName, Title = title, Authors = GetAuthors(model), }); }
public void SaveEducationPaymentsToPdfFile(string fileName, EducationBindingModel visit, string email) { var Visits = visitLogic.Read(visit).ToList(); string title = "Список курсов в период с " + visit.DateFrom.ToString() + " по " + visit.DateTo.ToString(); SaveToPdf.CreateDoc(new PdfInfo { FileName = fileName, Title = title, Educations = visitLogic.Read(visit).ToList(), Payments = GetEducationPayments(visit) }); SendMail(email, fileName, title); }