示例#1
0
        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);
        }
示例#2
0
        public byte[] AgreementReportFile(int OfferId, int UserType)
        {
            ReportDA ReportDAL = new ReportDA();

            return(ReportDAL.AgreementReportFile(OfferId, UserType));
        }