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

            return View(model);
        }
예제 #2
0
        public ActionResult Index()
        {
            GuestBookViewModel model = new GuestBookViewModel();

            return View(model);
        }