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