示例#1
0
 public JsonResult SysMenu(string nodeType, int?id)
 {
     if (nodeType == "list")
     {
         return(Json(_rbacService.GetMenus(), JsonRequestBehavior.AllowGet));
     }
     return(Json(_rbacService.GetMenuItems(id ?? 0), JsonRequestBehavior.AllowGet));
 }