public async Task <CustomerPaymentContractsResult> GetPaymentContractAsync(string SessionKey, int[] CustomerId) { return(await authorizationProcessor.DoAuthorizeAsync(SessionKey, async token => { var result = (await customerPaymentContractProcessor.GetAsync(CustomerId, token)).ToList(); return new CustomerPaymentContractsResult { ProcessResult = new ProcessResult { Result = true }, Payments = result, }; }, logger)); }
public async Task <IEnumerable <CustomerPaymentContract> > GetItems([FromBody] IEnumerable <int> customerIds, CancellationToken token) => (await customerPaymentContractProcessor.GetAsync(customerIds, token)).ToArray();