Пример #1
0
 public async Task <ExistResult> ExistCurrencyAsync(string SessionKey, int CurrencyId)
 {
     return(await authorizationProcessor.DoAuthorizeAsync(SessionKey, async token =>
     {
         var result = await nettingProcessor.ExistCurrencyAsync(CurrencyId, token);
         return new ExistResult
         {
             ProcessResult = new ProcessResult {
                 Result = true
             },
             Exist = result,
         };
     }, logger));
 }
Пример #2
0
 public async Task <ActionResult <bool> > ExistCurrency([FromBody] int currencyId, CancellationToken token)
 => await nettingProcessor.ExistCurrencyAsync(currencyId, token);