public ActionResult EditCategory(int id)
        {
            var model = new Category();

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

            return(View("AddCategory", category));
        }