Beispiel #1
0
 public async Task <ExistResult> ExistAccountTitleAsync(string SessionKey, int AccountTitleId)
 {
     return(await authorizationProcessor.DoAuthorizeAsync(SessionKey, async token =>
     {
         var result = await categoryProcessor.ExistAccountTitleAsync(AccountTitleId, token);
         return new ExistResult
         {
             ProcessResult = new ProcessResult {
                 Result = true
             },
             Exist = result,
         };
     }, logger));
 }
Beispiel #2
0
 public async Task <ActionResult <bool> > ExistAccountTitle([FromBody] int acccountTitleId, CancellationToken token)
 => await categoryProcessor.ExistAccountTitleAsync(acccountTitleId, token);