Пример #1
0
 public async Task <ExistResult> ExistExcludeCategoryAsync(string SessionKey, int CategoryId)
 {
     return(await authorizationProcessor.DoAuthorizeAsync(SessionKey, async token =>
     {
         var result = await receiptexcludeProcessor.ExistExcludeCategoryAsync(CategoryId, token);
         return new ExistResult
         {
             ProcessResult = new ProcessResult {
                 Result = true
             },
             Exist = result,
         };
     }, logger));
 }
Пример #2
0
 public async Task <bool> ExistExcludeCategory([FromBody] int CategoryId, CancellationToken token)
 => await receiptExcludeProcessor.ExistExcludeCategoryAsync(CategoryId, token);
Пример #3
0
 public async Task <bool> ExistExcludeCategory([FromBody] int categoryId, Token token)
 => await receiptexcludeProcessor.ExistExcludeCategoryAsync(categoryId, token);