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