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