public ActionResult Edit(int id) { var category = ParentCategory.GetCategory(id, true).First(); return(View("Create", category)); }
// GET: ParentCategory public ActionResult Index() { var categoryList = ParentCategory.GetCategory(null, true); return(View(categoryList)); }