Esempio n. 1
0
 public async Task <ExistResult> ExistAccountTitleAsync(string SessionKey, int AccountTitleId)
 {
     return(await authorizationProcessor.DoAuthorizeAsync(SessionKey, async token =>
     {
         var result = await billingProcessor.ExistDebitAccountTitleAsync(AccountTitleId, token) ||
                      await billingProcessor.ExistCreditAccountTitleAsync(AccountTitleId, token);
         return new ExistResult
         {
             ProcessResult = new ProcessResult {
                 Result = true
             },
             Exist = result,
         };
     }, logger));
 }
Esempio n. 2
0
 public async Task <bool> ExistAccountTitle([FromBody] int accountTitleId, CancellationToken token)
 => await billingProcessor.ExistDebitAccountTitleAsync(accountTitleId, token) ||
 await billingProcessor.ExistCreditAccountTitleAsync(accountTitleId, token);