public async Task <BillingInputResult> PublishInvoicesAsync(string SessionKey, string connectionId, BillingInvoiceForPublish[] invoices, int LoginUserId) { return(await authorizationProcessor.DoAuthorizeAsync(SessionKey, async token => { var result = await billingInvoiceProcessor.PublishInvoicesAsync(invoices, LoginUserId, token); return result; }, logger, connectionId)); }
public async Task <BillingInputResult> PublishInvoicesR(BillingInvoicePublishSource source) => await hubContext.DoAsync(source.ConnectionId, async (notifier, token) => await billingInvoiceProcessor.PublishInvoicesAsync(source.Items, source.LoginUserId, token));