BeiDream.Demo.Web.Controllers.HomeController.LeftNavigationModule C# (CSharp) Method

LeftNavigationModule() public method

获取左侧导航模块
public LeftNavigationModule ( ) : System.Web.Mvc.ActionResult
return System.Web.Mvc.ActionResult
        public ActionResult LeftNavigationModule()
        {
            Guid userId = new Guid(GetApplicationSession().Name);
            List<VmResourceTreeGrid> treeNodes = _resourceService.GetNavigationModule(userId).Select(p => p.MapTo<VmResourceTreeGrid>()).ToList();
            //////系统初始化登录,如果导航模块为0且是超级管理员登录,添加系统管理模块
            //List<VmResourceTreeGrid> treeNodes=new List<VmResourceTreeGrid>();
            //if(treeNodes.Count==0 && GetApplicationSession().IsAdmin)
            //    treeNodes.Add(new VmResourceTreeGrid() { Id = "47ccd9a8-f834-45d7-9fd5-0ceba98e7d1a", Name = "系统模块", iconClass = "icon-man" });
            return PartialView("Part/Left", treeNodes);
        }