//[JsonException] public ActionResult GetAllDataByEquipmentIdAndMark(int equipmentId, string mark, ChartSearchParam param, int pageIndex, int pageSize) { JsonStateResult result = new JsonStateResult(); var list = _dataApiService.GetAllDataByEquipmentIdAndMark(equipmentId, mark, param, pageIndex, pageSize); if (list != null && list.Count() > 0) { result.Error = 0; result.Msg = _dataApiService.GetAllDataByEquipmentIdAndMarkCount(equipmentId, mark, param).ToString(); result.Data = list; return(Content(JsonConverter.SerializeObject(result))); } result.Error = 1; result.Msg = "没有数据"; return(Json(result, JsonRequestBehavior.AllowGet)); }