예제 #1
0
        public ActionResult AddCategory(Category category)
        {
            if (ModelState.IsValid)
            {
                _manager.AddCategory(category);

                return(RedirectToAction("ManageCategories"));
            }
            else
            {
                return(View(category));
            }
        }