private string setSatrState(HttpContext context) { Json jsonResult = new Json(); string allUserId = context.Request["allUserId"]; int result = ms.setSatrState(allUserId); if (result > 0) { jsonResult.Success = true; jsonResult.Msg = "修改成功"; } else { jsonResult.Success = false; jsonResult.Msg = "修改失败"; } string strJson = JsonConvert.SerializeObject(jsonResult); return(strJson); }