public static Task <T> GetAsync <T, U>(this ICosmosDbRepository <T> repo, U partitionKey, DocumentId itemId, RequestOptions requestOptions = null) { requestOptions = SetPartitionKey(partitionKey, requestOptions); return(repo.GetAsync(itemId, requestOptions)); }
public Task <IEnumerable <Rental> > GetAll() { return(_repository.GetAsync <Rental>(a => a.Id != null)); }