public async Task <ReceiptSectionTransfersResult> GetReceiptSectionTransferForPrintAsync(string SessionKey, int CompanyId) { return(await authorizationProcessor.DoAuthorizeAsync(SessionKey, async token => { var result = (await receiptSectionTransferProcessor.GetReceiptSectionTransferForPrintAsync(CompanyId, token)).ToList(); return new ReceiptSectionTransfersResult { ProcessResult = new ProcessResult { Result = true }, ReceiptSectionTransfers = result, }; }, logger)); }
public async Task <IEnumerable <ReceiptSectionTransfer> > GetReceiptSectionTransferForPrint([FromBody] int companyId) => (await receiptSectionTransferProcessor.GetReceiptSectionTransferForPrintAsync(companyId)).ToArray();