Beispiel #1
0
        public ActionResult DeleteMenusPermission()
        {
            string json = Request["data"];

            if (string.IsNullOrWhiteSpace(json))
            {
                throw new BusinessException("请选择要删除的菜单的权限点");
            }
            int sysno = 0;

            int.TryParse(json, out sysno);
            if (sysno == 0)
            {
                throw new BusinessException("传入的菜单的权限点不是有效编号");
            }
            menu_service.DeleteMenusPermission(sysno);
            return(Json(new AjaxResult {
                Success = true, Data = "删除成功"
            }, JsonRequestBehavior.AllowGet));
        }