Esempio n. 1
0
        public JsonResult Delete(string functionId)
        {
            try
            {
                if (!IsPermission(FunctionID) || CompanyID != "sys")
                {
                    return(Error("您没有操作权限,请联系系统管理员!"));
                }

                bool result = FunctionService.DeleteFunctionPro(functionId);
                if (result)
                {
                    return(Success("成功"));
                }
                else
                {
                    return(Error("fail"));
                }
            }
            catch (Exception ex)
            {
                return(Error(ex.Message));
            }
        }