public async Task UpsertTrainingProvider(long providerId, string providerName) { await _employerFeedbackRepository.UpsertIntoProviders(new Provider[] { new Provider() { Ukprn = providerId, ProviderName = providerName } }); }
public async Task RefreshProviderData() { await _dbRepository.MarkProviderInactive(); var providers = await _roatpService.GetAll(); var cutDownProviders = providers.Select(p => new Provider { Ukprn = p.Ukprn, ProviderName = p.LegalName }); await _dbRepository.UpsertIntoProviders(cutDownProviders); }