public IActionResult ContactEmail(int? id) { Email email = new Email(); email.ContactEmail = Services.Emails.GetContactEmailAddress(id); email.ContactName = Services.Emails.GetContactName(id); return View(email); }
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); }
public IActionResult ProcessRequest(Email email) { return View(email); }