public ActionResult EditCategory(int id) { var model = new Category(); model = CategoryBusiness.GetCategoryByCategoryId(id); return(PartialView("EditCategory", model)); }
// Redirect to Edit Category Form public async Task <ActionResult> EditCategory(int Id) { var category = await CategoryBusiness.GetCategoryByCategoryId(Id); return(View("AddCategory", category)); }