Exemplo n.º 1
0
        public ActionResult Index()
        {
            ViewBag.MaxLevel = groupDal.GetMaxLevel(); //获取最大层级,来确定“上级班组”下拉框的个数
            List <Node> model = groupDal.GetAllGroups().Where(x => x.level == 0).ToList();

            return(View(model));
        }