public IActionResult TreeViewData()
        {
            var departmentTreeViewNodes = TreeViewFactory.GetTreeNodes <Department>(_departmentRepository);

            return(Json(departmentTreeViewNodes));
        }
 /// <summary>
 /// 获取导航树所需要的节点集合
 /// </summary>
 /// <returns></returns>
 public List <TreeNode> GetNavigatorItems()
 {
     return(TreeViewFactory.GetTreeNodes <Department>(_departmentRepository));
 }
Exemple #3
0
        /// <summary>
        /// 获取课程单元导航树所需要的节点集合
        /// </summary>
        /// <returns></returns>
        public List <TreeNode> GetNavigatorItems(Guid courseId)
        {
            var items = TreeViewFactory.GetTreeNodes <CourseItem>(_boRepository, x => x.Course.Id == courseId);

            return(items);
        }
 /// <summary>
 /// 获取导航树所需要的节点集合
 /// </summary>
 /// <returns></returns>
 public List <TreeNode> GetNavigatorItems()
 {
     return(TreeViewFactory.GetTreeNodes <GradeAndClass>(_gradeRepository));
 }