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