public IActionResult OneTimeToken([FromForm] OneTimeBot oneTimeBot) { if (_bot.IsRunning()) { ModelState.AddModelError("Token", "You cannot change the account while the bot is running."); return(View(oneTimeBot)); } _bot.SetActiveBotAccount(new BotAccount(oneTimeBot.Token)); return(RedirectToAction("Index", "Home")); }