public ActionResult ContactUs(ContactUsViewModel contactVm) { if (!ModelState.IsValid) { return View(contactVm); } var message = new Message { Body = contactVm.Body, Subject = contactVm.Subject, FromAddress= contactVm.EmailFrom }; ProcessContactUs(message); return this.RedirectToAction<HelpController>(c=>c.ContactConfirm()); }
public ActionResult ContactUs() { var viewModel = new ContactUsViewModel(); return View(viewModel); }