Example #1
0
        public async Task <IEnumerable <DirectoryDto> > GetAlltTreeNodes()
        {
            var directories = await _directoryRepository.GetAllAsync();

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

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