public async Task UpdateScraperStatus(int accountId, Models.Types.ScraperStatus status)
        {
            using (var db = new ScraperLinkedInDBEntities())
            {
                var settings = await db.Settings.Where(x => x.AccountId == accountId).FirstOrDefaultAsync();

                settings.ScraperStatusID = (int)status;

                await db.SaveChangesAsync();
            }
        }
Exemplo n.º 2
0
 public async Task UpdateScraperStatus(int accountId, Models.Types.ScraperStatus status)
 {
     await _settingRepository.UpdateScraperStatus(accountId, status);
 }