public IActionResult CreateNewCategory(string categoryName) { repo.AddANewCategory(categoryName); //Implementation in Upload/Index.cshtml TempData["Success"] = $"Success! The category \"{categoryName}\" has been added"; return(RedirectToAction("Index", "Upload")); }