예제 #1
0
 public async Task <ExistResult> HasChildAsync(string SessionKey, int ParentCustomerId)
 {
     return(await authorizationProcessor.DoAuthorizeAsync(SessionKey, async token =>
     {
         var hasChild = await customerGroupProcessor.HasChildAsync(ParentCustomerId, token);
         return new ExistResult
         {
             ProcessResult = new ProcessResult {
                 Result = true
             },
             Exist = hasChild,
         };
     }, logger));
 }
예제 #2
0
 public async Task <ActionResult <bool> > HasChild([FromBody] int parentCustomerId, CancellationToken token)
 => await customerGroupProcessor.HasChildAsync(parentCustomerId, token);