public ActionResult Create(CategoryViewModel category) { try { _categoryService.AddCategory(category); return(RedirectToAction(nameof(Index))); } catch { return(View()); } }
public ActionResult Create(CategoryViewModel category) { try { _categoryService.AddCategory(category); return(RedirectToAction(nameof(Index))); } catch { return(View()); } }