public async Task <BillingInvoiceDetailResult> GetDetailsForPrintAsync(string SessionKey, BillingInvoiceDetailSearch billingInvoiceDetailSearch) { return(await authorizationProcessor.DoAuthorizeAsync(SessionKey, async token => { var result = (await billingInvoiceProcessor.GetDetailsForPrintAsync(billingInvoiceDetailSearch, token)).ToList(); return new BillingInvoiceDetailResult { ProcessResult = new ProcessResult { Result = true }, BillingInvoicesDetails = result, }; }, logger)); }
public async Task <IEnumerable <BillingInvoiceDetailForPrint> > GetDetailsForPrint( BillingInvoiceDetailSearch option, CancellationToken token) => (await billingInvoiceProcessor.GetDetailsForPrintAsync(option, token)).ToArray();