Ejemplo n.º 1
0
 public async Task <NettingResult> SaveAsync(string SessionKey, Netting[] Netting)
 {
     return(await authorizationProcessor.DoAuthorizeAsync(SessionKey, async token =>
     {
         var result = (await nettingProcessor.SaveAsync(Netting, token)).ToArray();
         return new NettingResult
         {
             ProcessResult = new ProcessResult {
                 Result = true
             },
             Netting = result,
         };
     }, logger));
 }
Ejemplo n.º 2
0
 public async Task <ActionResult <IEnumerable <Netting> > > Save(IEnumerable <Netting> nettings, CancellationToken token)
 => (await nettingProcessor.SaveAsync(nettings, token)).ToArray();