public async Task <List <string> > DeleteApprenticeshipsByUKPRN(int UKPRN) { Throw.IfNull <int>(UKPRN, nameof(UKPRN)); Throw.IfLessThan(0, UKPRN, nameof(UKPRN)); List <string> results = null; var client = _cosmosDbHelper.GetClient(); results = await _cosmosDbHelper.DeleteDocumentsByUKPRN(client, _settings.ApprenticeshipCollectionId, UKPRN); return(results); }
public async Task <List <string> > DeleteCoursesByUKPRN(int UKPRN) { Throw.IfNull <int>(UKPRN, nameof(UKPRN)); Throw.IfLessThan(0, UKPRN, nameof(UKPRN)); List <string> results = null; using (var client = _cosmosDbHelper.GetClient()) { results = await _cosmosDbHelper.DeleteDocumentsByUKPRN(client, _settings.CoursesCollectionId, UKPRN); } return(results); }