public ActionResult Index(GuestBookViewModel model) { if (ModelState.IsValid) { return RedirectToAction("Success"); } return View(model); }
public ActionResult Index() { GuestBookViewModel model = new GuestBookViewModel(); return View(model); }