public void ProcessRequest(HttpContext context) { context.Response.ContentType = "text/plain"; //context.Response.Write("run"); AgentConfig agentConfig = new AgentConfig(); int[] ids = new int[] { 424, 995 }; context.Response.Write("del num:" + agentConfig.DelItem(ids)); }
public MsgEntity DelAgent(int id) { MsgEntity r; if (agentConfig.IsExist(id)) { if (agentConfig.DelItem(id)) { r = ResponseMsg.SetEntity(out r, 3000); } else { r = ResponseMsg.SetEntity(out r, 3101); } } else { r = ResponseMsg.SetEntity(out r, 3100); } return(r); }