コード例 #1
0
 public async Task AddAsync(InternalNotifyMeRequest notifyMeRequest)
 {
     await DocumentDBRepository <InternalNotifyMeRequest> .CreateItemAsync(notifyMeRequest, notifyMeRequest.DeliveryId.Substring(0, Constants.PartitionKeyLength));
 }
コード例 #2
0
 public async Task <IEnumerable <InternalNotifyMeRequest> > GetAllByDeliveryIdAsync(string deliveryId)
 {
     return(await DocumentDBRepository <InternalNotifyMeRequest> .GetItemsAsync(n => n.DeliveryId == deliveryId, deliveryId.Substring(0, Constants.PartitionKeyLength)));
 }