public IActionResult AddDictionary(string name) { if (String.IsNullOrEmpty(name)) { return(RedirectToAction("Index", "Home")); } var result = _dictionaryService.AddDictionary(name); if (result) { return(RedirectToAction("DictionariesList", "Admin", new { i = 1 })); } return(RedirectToAction("Index", "Home")); }