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()); }
public async Task TestBotAuthorization() { var bl = new ImportBL(_context); var settings = new UserSettings() { UserId = Guid.NewGuid().ToString(), BotPassword = "******", BotUserName = "******", TargetUsername = "******" }; await bl.Import(settings); }