public IActionResult Delete(int id) { _mainCategory.DeleteCategoryById(id); return(RedirectToAction("Index")); }