Ejemplo n.º 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));
 }
Ejemplo n.º 2
0
 public async Task <ActionResult <bool> > HasChild([FromBody] int parentCustomerId, CancellationToken token)
 => await customerGroupProcessor.HasChildAsync(parentCustomerId, token);