예제 #1
0
 public ActionResult Create(Category category)
 {
     if (ModelState.IsValid)
     {
         Handler.AddCategory(category);
         return(RedirectToAction("Index", "Category"));
     }
     return(View(category));
 }