Ejemplo n.º 1
0
 public async Task <CurrencyResult> SaveAsync(string SessionKey, Currency Currency)
 {
     return(await authorizationProcessor.DoAuthorizeAsync(SessionKey, async token =>
     {
         var result = await currencyProcessor.SaveAsync(Currency, token);
         return new CurrencyResult
         {
             ProcessResult = new ProcessResult {
                 Result = true
             },
             Currency = result,
         };
     }, logger));
 }
Ejemplo n.º 2
0
 public async Task <ActionResult <Currency> > Save(Currency currency, CancellationToken token)
 => await currencyProcess.SaveAsync(currency, token);