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();
            }
        }
Example #2
0
 public async Task UpdateScraperStatus(int accountId, Models.Types.ScraperStatus status)
 {
     await _settingRepository.UpdateScraperStatus(accountId, status);
 }