Esempio n. 1
0
        public async Task <IEnumerable <DirectoryDto> > GetNodeOfFirstLevelChilrenAsync(int?id)
        {
            var directories = await _directoryRepository.GetChildrenAsync(id);

            if (directories == null)
            {
                return(null);
            }

            return(_mapper.Map <ICollection <DirectoryDto> >(directories));
        }