// // GET: /Mail/ public ActionResult Index() { MesssageTO message = new MesssageTO(); message.Text = "Successful"; try { Mail mail = new Mail(GetMailMessage()); mail.Send(); } catch (Exception ex) { message.Text = ex.Message; } return(View(message)); }
// // GET: /Pdf/ public ActionResult Index() { MesssageTO message = new MesssageTO(); message.Text = "Successful"; try { AssesmentReportTO report = new AssesmentReportTO(); report.Sections = GetReportSections(); report.AssesmentInfo = GetAssesmentInfo(); report.Analysis = GetAnalysis(); Pdf.GenerateSimplePdf(report); } catch (Exception ex) { message.Text = ex.Message; } return(View(message)); }