public bool UpdateModuleOperateStatus(int OperateID) { if (Session[Util.ProjectConfig.ADMINUSER] == null) { return(false); } Sys_module_operate operate = Sys_module_operateManager.GetSys_module_operateByPK(OperateID); operate.Status = operate.Status == "1" ? "0" : "1"; return(Sys_module_operateManager.UpdateSys_module_operate(operate)); }
public bool UpdateModuleOperate(string Operate_text, int OperateID) { if (Session[Util.ProjectConfig.ADMINUSER] == null) { return(false); } Sys_module_operate operate = Sys_module_operateManager.GetSys_module_operateByPK(OperateID); operate.Operate_text = Operate_text; return(Sys_module_operateManager.UpdateSys_module_operate(operate)); }