コード例 #1
0
ファイル: CustomerMaster.svc.cs プロジェクト: fwka1605/next
 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));
 }
コード例 #2
0
 public async Task <IEnumerable <CustomerPaymentContract> > GetItems([FromBody] IEnumerable <int> customerIds, CancellationToken token)
 => (await customerPaymentContractProcessor.GetAsync(customerIds, token)).ToArray();