Beispiel #1
0
 public async Task <ReceiptsResult> GetAsync(string SessionKey, long[] Id)
 {
     return(await authorizationProcessor.DoAuthorizeAsync(SessionKey, async token =>
     {
         var result = (await receiptProcessor.GetByIdsAsync(Id, token)).ToList();
         return new ReceiptsResult
         {
             ProcessResult = new ProcessResult {
                 Result = true
             },
             Receipts = result,
         };
     }, logger));
 }
Beispiel #2
0
 public async Task <IEnumerable <Receipt> > Get([FromBody] long[] ids, CancellationToken token)
 => (await receiptProcessor.GetByIdsAsync(ids, token)).ToArray();