예제 #1
0
        public IActionResult Authentication()
        {
            var accounts = _botCredentials.GetAllAccounts();
            var model    = new BotAuthViewModel
            {
                SavedBotAccounts = accounts.Select(Mapper.Map <BotAccountViewModel>),
                BotIsRunning     = _bot.IsRunning()
            };

            return(View(model));
        }