Exemplo n.º 1
0
 public ActionResult Edit(CategoryViewModel category)
 {
     if (ModelState.IsValid)
     {
         categoryService.UpdateCategory(category);
         return(RedirectToAction("Index"));
     }
     return(View(category));
 }