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