Esempio n. 1
0
 public IActionResult ContactEmail(int? id)
 {
     Email email = new Email();
     email.ContactEmail = Services.Emails.GetContactEmailAddress(id);
     email.ContactName = Services.Emails.GetContactName(id);
     return View(email);
 }
Esempio n. 2
0
 public IActionResult ContactEmail(Email email, int? id)
 {
     email.ContactEmail = Services.Emails.GetContactEmailAddress(id);
     email.ContactName = Services.Emails.GetContactName(id);
     Services.Emails.ProcessEmail(email.ContactEmail, email.CustomerEmail, email.EmailSubject, email.EmailBody);
     email.ErrorMessage = Services.Emails.errorMessage;
     return RedirectToAction("ProcessRequest", email);
 }
Esempio n. 3
0
 public IActionResult ProcessRequest(Email email)
 {
     return View(email);
 }