コード例 #1
0
        /// <summary>
        /// 加载树形菜单数据集
        /// </summary>
        /// <returns></returns>
        public JsonResult LoadTreeMenu()
        {
            MenuDomain menu     = new MenuDomain(_db);
            var        treeMenu = menu.GetTreeMenus();

            return(Json(treeMenu, JsonRequestBehavior.AllowGet));
        }
コード例 #2
0
        public JsonResult AddTreeMenu(string parentTreeId, string menuName, string icon, bool isInnerPage, int sort)
        {
            MenuDomain menu  = new MenuDomain(_db);
            var        model = new ActionResultModel <TreeViewModel>();

            model.isSuccess    = true;
            model.responseInfo = menu.InsertTreeMenu(parentTreeId, menuName, icon, isInnerPage, sort);
            return(Json(model));
        }
コード例 #3
0
 /// <summary>
 /// Construtor referente ao controller do Módulo Usuário
 /// </summary>
 public UserController(SysQueirozContext context)
 {
     userDomain    = new UserDomain(context);
     profileDomain = new ProfileDomain(context);
     menuDomain    = new MenuDomain(context);
 }