/// <summary> /// 加载树形菜单数据集 /// </summary> /// <returns></returns> public JsonResult LoadTreeMenu() { MenuDomain menu = new MenuDomain(_db); var treeMenu = menu.GetTreeMenus(); return(Json(treeMenu, JsonRequestBehavior.AllowGet)); }
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)); }
/// <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); }