public IActionResult Create(CategoryView category) { var newCategory = _service.ConvertViewToData(category); _category.Add(newCategory); CategoryUpdate(); return(RedirectToAction("Index", "Category")); }
public IActionResult Create(CategoryView category) { var newCategory = _service.ConvertViewToData(category); _category.Add(newCategory); CategoryUpdate(); return(RedirectToAction("Index", "Category")); }