예제 #1
0
        private ICollection <FolderViewModel> CreateSubfolders(int?parentNodeId)
        {
            var content = _repository.GetFolderContent(parentNodeId);

            var result = new Collection <FolderViewModel>();

            foreach (var entity in content)
            {
                var newItem = new FolderViewModel()
                {
                    Name = entity.Name
                };
                result.Add(newItem);
            }
            return(result);
        }