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