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);
public async Task <ActionResult <IEnumerable <MatchedReceipt> > > GetMatchedReceiptR(JournalizingOption option) => await hubContext.DoAsync(async token => (await matchingJournalizingProcessor.GetMatchedReceiptAsync(option, token)).ToArray());