Esempio 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));
 }
Esempio n. 2
0
 public async Task <ActionResult <Currency> > Save(Currency currency, CancellationToken token)
 => await currencyProcess.SaveAsync(currency, token);