よく使われるメソッド
よく使われるメソッド
よく使われるメソッド
よく使われるメソッド
public static async Task <OfferV2> GetOfferAsync(this IDocumentClient documentClient, string databaseName, string collectionName = null) { if (string.IsNullOrEmpty(collectionName)) { return(await documentClient.GetDatabaseOfferAsync(databaseName)); } return(await documentClient.GetCollectionOfferAsync(databaseName, collectionName) ?? await documentClient.GetDatabaseOfferAsync(databaseName)); }