Beispiel #1
0
        public void SendJobEstimationEmail(JobEstimationRequestFormVM model)
        {
            var attachments = new List <Attachment>();

            if (model.Files != null && model.Files.Any())
            {
                foreach (var file in model.Files)
                {
                    if (file != null)
                    {
                        attachments.Add(new Attachment(file.InputStream, file.FileName));
                    }
                }
            }
            SendEmail(model, JOB_ESTIMATION_EMAIL_SUBJECT, attachments);
        }
 public JsonResult JobEstimation(JobEstimationRequestFormVM model)
 {
     return(ExecPostAjax(() => { _emailManager.SendJobEstimationEmail(model); }));
 }