public QueryMonitoringPointsPositionsByTestTypeIdResponse GetMonitoringPointsPositionsByTestTypeId(int ttId) { var resp = new QueryMonitoringPointsPositionsByTestTypeIdResponse(); try { if (ttId == 0) { resp.Succeed = false; } var source = _mppDAL.GetModelsByTestTypeId(ttId); var models = source.ConvertToMonitoringTestTypeViewModelCollection(); resp.Datas = models; resp.Succeed = true; } catch (Exception ex) { resp.Message = "获取测点位置数据发生错误"; Log(ex); } return(resp); }
public IEnumerable <int> GetSectionIdsBy(int testTypeId) { return(_mppDAL.GetModelsByTestTypeId(testTypeId).Select(m => m.Id)); }