Esempio n. 1
0
 public async Task <AccountTransferDetailsResult> SaveAsync(string SessionKey,
                                                            AccountTransferDetail[] AccountTransferDetails, bool Aggregate)
 {
     return(await authorizationProcessor.DoAuthorizeAsync(SessionKey, async token =>
     {
         foreach (var detail in AccountTransferDetails)
         {
             detail.Aggregate = Aggregate;
         }
         var result = (await accounttransferProcessor.SaveAsync(AccountTransferDetails, token)).ToList();
         return new AccountTransferDetailsResult
         {
             ProcessResult = new ProcessResult {
                 Result = true
             },
             AccountTransferDetail = result,
         };
     }, logger));
 }
Esempio n. 2
0
 public async Task <IEnumerable <AccountTransferDetail> > Save(IEnumerable <AccountTransferDetail> details, CancellationToken token)
 => (await accounttransferProcessor.SaveAsync(details, token)).ToList();