예제 #1
0
 public ActionResult Create(NewTodoVM model)
 {
     if (!ModelState.IsValid)
     {
         return View("New", model);
     }
     return RedirectToAction("Index");
 }
예제 #2
0
 public ActionResult New()
 {
     NewTodoVM model = new NewTodoVM();
     return View(model);
 }