public IActionResult AddCategory() { string categoryId = repObj.GetNextCategoryId(); ViewBag.NextCategoryId = categoryId; return(View()); }