Exemplo n.º 1
0
        // GET: Bot
        public async Task <ActionResult> Index()
        {
            string cookievalue = GetBotUserId();
            string token       = await BotHelper.GetChatToken(_settings.WebChatSecret);

            ViewData["chatToken"] = token;
            ViewData["userId"]    = cookievalue;
            ViewData["botId"]     = _settings.BotId;
            ViewData["userName"]  = "******";

            return(View());
        }