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