public static async Task <Document> ReadDocumentAsync(this DocumentClient docClient, DocCollection dc, string docId) { return(await docClient.ReadDocumentAsync(dc.ToDocUri(docId))); }
public static async Task <Document> UpsertDocumentAsync <T>(this DocumentClient docClient, DocCollection dc, T document) where T : IIdentifiableItem { return(await docClient.UpsertDocumentAsync(dc.ToDocUri(document.Id), document)); }