public MailAttachments AgreementReportAttachment(int OfferId, int UserType) { ReportDA ReportDAL = new ReportDA(); byte[] AgreementReport = ReportDAL.AgreementReportFile(OfferId, UserType); MailAttachments AgreementReportAttachment = new MailAttachments(); AgreementReportAttachment.file = AgreementReport; AgreementReportAttachment.fileName = "AgreementReport.pdf"; AgreementReportAttachment.contentType = "application/pdf"; return(AgreementReportAttachment); }
public byte[] AgreementReportFile(int OfferId, int UserType) { ReportDA ReportDAL = new ReportDA(); return(ReportDAL.AgreementReportFile(OfferId, UserType)); }