Exemplo n.º 1
0
 public virtual async Task <ListResultDto <OrganizationUnitDto> > FindChildrenAsync(OrganizationUnitGetChildrenDto input)
 {
     return(await OrganizationUnitAppService.FindChildrenAsync(input));
 }
Exemplo n.º 2
0
        public virtual async Task <ListResultDto <OrganizationUnitDto> > FindChildrenAsync(OrganizationUnitGetChildrenDto input)
        {
            var origanizationUnitChildren = await OrganizationUnitManager.FindChildrenAsync(input.Id, input.Recursive);

            return(new ListResultDto <OrganizationUnitDto>(
                       ObjectMapper.Map <List <OrganizationUnit>, List <OrganizationUnitDto> >(origanizationUnitChildren)));
        }