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