예제 #1
0
        //根据主菜单获取子菜单
        public ActionResult GetChildMenu(int id)
        {
            List <ActionInfo> actInfo = new List <ActionInfo>();

            actInfo = actionInfoService.Find(c => c.ParID == id).ToList();
            return(Json(actInfo, JsonRequestBehavior.AllowGet));
        }
예제 #2
0
        public ActionResult GetActMsg()
        {
            List <ActionInfo> model = new List <ActionInfo>();
            var rec = actService.Find(c => c.ParID == 0).ToList();

            if (rec != null)
            {
                model = rec;
            }
            return(Json(model, JsonRequestBehavior.AllowGet));
        }