예제 #1
0
 public async Task <BillingsResult> SavingSetAsync(string SessionKey, IEnumerable <Billing> billings, IEnumerable <Customer> customers)
 {
     return(await authorizationProcessor.DoAuthorizeAsync(SessionKey, async token =>
     {
         var result = (await mfBillingProcessor.SaveAsync(new MFBillingSource {
             Billings = billings.ToArray(),
             Customers = customers.ToArray(),
         }, token)).ToList();
         return new BillingsResult()
         {
             Billings = result, ProcessResult = new ProcessResult()
             {
                 Result = true
             }
         };
     }, logger));
 }
예제 #2
0
 public async Task <IEnumerable <Billing> > Save(MFBillingSource source, CancellationToken token)
 => (await mfBillingProcessor.SaveAsync(source, token)).ToArray();