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)); }
public async Task <IEnumerable <Receipt> > Get([FromBody] long[] ids, CancellationToken token) => (await receiptProcessor.GetByIdsAsync(ids, token)).ToArray();