Beispiel #1
0
        public async Task <IActionResult> StartImport()
        {
            var bl       = new ImportBL(_context);
            var settings = _context.UserSettings.Where(x => x.UserId == CurrentUserId && x.Active).FirstOrDefault();
            await bl.Import(settings);

            return(Ok());
        }
Beispiel #2
0
 public async Task TestBotAuthorization()
 {
     var bl       = new ImportBL(_context);
     var settings = new UserSettings()
     {
         UserId         = Guid.NewGuid().ToString(),
         BotPassword    = "******",
         BotUserName    = "******",
         TargetUsername = "******"
     };
     await bl.Import(settings);
 }