public async Task <List <StandardsAndFrameworks> > GetStandardByCode(int standardCode, int standardVersion) { List <StandardsAndFrameworks> persisted = null; var client = _cosmosDbHelper.GetClient(); await _cosmosDbHelper.CreateDatabaseIfNotExistsAsync(client); await _cosmosDbHelper.CreateDocumentCollectionIfNotExistsAsync(client, _settings.StandardsCollectionId); var doc = _cosmosDbHelper.GetStandardByCode(client, _settings.StandardsCollectionId, standardCode, standardVersion); persisted = doc; return(persisted); }