public ActionResult Index(ContactViewModel model) { try { model.Save(); // Lab #3, Step #7 //if (!ModelState.IsValid) //{ // return View(); //} //else //{ // model.Save(); //} return RedirectToAction("Success", model); } catch { return View(); } }
public ActionResult Success(ContactViewModel model) { return View(model); }