public ActionResult AddCareerBatch(long id) { string data = Request.Params["requestData"]; if (data == null) { return(Json( new OperateResult { content = "无数据", }, JsonRequestBehavior.AllowGet )); } JavaScriptSerializer js = new JavaScriptSerializer(); List <EmployeeCareerRecord> lstData = js.Deserialize <List <EmployeeCareerRecord> >(data); if (lstData.Count == 0) { return(Json( new OperateResult { content = "无考核数据", }, JsonRequestBehavior.AllowGet )); } OperateResult or = EmployeeManager.AddCareerRecordBatch(id, lstData); return(Json(or, JsonRequestBehavior.AllowGet)); }