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