예제 #1
0
 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));
 }
예제 #2
0
 public Task <IEnumerable <Rental> > GetAll()
 {
     return(_repository.GetAsync <Rental>(a => a.Id != null));
 }