Esempio n. 1
0
        public ActionResult Index(GuestBookViewModel model)
        {
            if (ModelState.IsValid)
            {
                return RedirectToAction("Success");
            }

            return View(model);
        }
Esempio n. 2
0
        public ActionResult Index()
        {
            GuestBookViewModel model = new GuestBookViewModel();

            return View(model);
        }