public ActionResult AddCategory(NewCategoryType category) { cat.AddNewCategoryType(category.CategoryType); cat.Save(); ViewBag.Message = "You have successfully added this category:" + category.CategoryType.Title; return View(category); }
public ActionResult AddCategory() { var category = new NewCategoryType(); return View(category); }