コード例 #1
0
ファイル: BotController.cs プロジェクト: petrspelos/dashbot
        public IActionResult Authentication()
        {
            var accounts = _botCredentials.GetAllAccounts();
            var model    = new BotAuthViewModel
            {
                SavedBotAccounts = accounts.Select(Mapper.Map <BotAccountViewModel>),
                BotIsRunning     = _bot.IsRunning()
            };

            return(View(model));
        }