Esempio n. 1
0
        /// <summary>
        /// 1.2 权限修改
        /// </summary>
        /// <returns></returns>
        public ActionResult EditPermission(MODEL.Ou_Permission model)
        {
            int res = OperateContext.Current.BLLSession.IOu_PermissionBLL.Modify(model, "pName", "pAreaName", "pControllerName", "pActionName", "pFormMethod", "pOperationType", "pOrder", "pIsShow", "pRemark");

            if (res > 0)
            {
                return(Redirect("/admin/sys/Permission?ok"));
            }
            else
            {
                return(Redirect("/admin/sys/Permission?err"));
            }
        }
Esempio n. 2
0
        /// <summary>
        /// 新增权限
        /// </summary>
        /// <returns></returns>
        public ActionResult AddPermission(MODEL.Ou_Permission model)
        {
            model.pIsDel   = false;
            model.pAddTime = DateTime.Now;

            int res = OperateContext.Current.BLLSession.IOu_PermissionBLL.Add(model);

            if (res > 0)
            {
                return(Redirect("/admin/sys/Permission?ok"));
            }
            else
            {
                return(Redirect("/admin/sys/Permission?err"));
            }
        }