public async Task<ReceiptsResult> searchReceiptByIdAsync(string SessionKey, long[] ReceiptId) { return await authorizationProcessor.DoAuthorizeAsync(SessionKey, async token => { var result = (await matchingProcessor.SearchReceiptByIdAsync(ReceiptId, token)).ToList(); return new ReceiptsResult { ProcessResult = new ProcessResult { Result = true }, Receipts = result, }; }, logger); }
public async Task <ActionResult <IEnumerable <Receipt> > > SearchReceiptById(long[] ids, CancellationToken token) => (await matchingProcessor.SearchReceiptByIdAsync(ids, token)).ToArray();