public ActionResult Contact(Contact model) { if (ModelState.IsValid) { if (EmailBuilder.SendContactFormEmail(model)) { return Redirect("ThankYou"); } return Redirect("Failed"); } else { return View(model); } }
public ActionResult Contact() { var model = new Contact(); return View(model); }