public async Task <IEnumerable <IApprenticeship> > GetApprenticeshipCollection() { var client = _cosmosDbHelper.GetClient(); await _cosmosDbHelper.CreateDatabaseIfNotExistsAsync(client); await _cosmosDbHelper.CreateDocumentCollectionIfNotExistsAsync(client, _settings.ApprenticeshipCollectionId); return(_cosmosDbHelper.GetApprenticeshipCollection(client, _settings.ApprenticeshipCollectionId)); }