Exemple #1
0
 public async Task<MatchedReceiptsResult> GetMatchedReceiptAsync(string SessionKey, JournalizingOption option)
     => await authorizationProcessor.DoAuthorizeAsync(SessionKey, async token =>
     {
         var result = await matchingJournalizingProcessor.GetMatchedReceiptAsync(option, token);
         return new MatchedReceiptsResult
         {
             ProcessResult = new ProcessResult { Result = true },
             MatchedReceipts = result.ToList(),
         };
     }, logger);
Exemple #2
0
 public async Task <ActionResult <IEnumerable <MatchedReceipt> > > GetMatchedReceiptR(JournalizingOption option)
 => await hubContext.DoAsync(async token
                             => (await matchingJournalizingProcessor.GetMatchedReceiptAsync(option, token)).ToArray());