Beispiel #1
0
        public IActionResult Global()
        {
            if (!_bot.IsRunning())
            {
                return(RedirectToAction("Authentication", "Bot"));
            }

            var model = new ChatViewModel
            {
                AvailableServers = _bot.GetAvailableServers().Select(Mapper.Map <ServerDetailViewModel>),
                MessageBuffer    = new List <ChatMessageViewModel>()
            };

            return(View(model));
        }