public ActionResult Contact(ContactViewModel model) { if (ModelState.IsValid) { _db.SaveEmailTransmission(model.Name, model.EmailAddress, model.Body, model.UserWebSite); return RedirectToAction("RedirectingSubscription", "Redirect"); } //Something went wrong return View(model); }
public ActionResult Contact() { ContactViewModel model = new ContactViewModel(); return View(model); }