public async Task <BillingsResult> InputScheduledPaymentAsync(string sessionKey, Billing[] billings) { return(await authorizationProcessor.DoAuthorizeAsync(sessionKey, async token => { var result = (await billingScheduledPaymentProcessor.SaveAsync(billings, token)).ToList(); return new BillingsResult { Billings = result, ProcessResult = new ProcessResult { Result = true } }; }, logger)); }
public async Task <IEnumerable <Billing> > InputScheduledPayment(IEnumerable <Billing> billings, CancellationToken token) => (await billingScheduledPaymentProcessor.SaveAsync(billings, token)).ToArray();