public IActionResult CreateTokenSettings(Token token) { try { if (ModelState.IsValid) { _tokensService.SaveToken(token); return(RedirectPermanent("~/admin/Tokens/TokenSettings")); } } catch (Exception ex) { token.DeveloperMessage = ex.Message; } return(View(token)); }