public IEnumerable<PlasticSeqSchedule> GetPlasticScheduleHistoryDetailByLocationId(int locationId, int scheduleNum) { SequencingScheduleFactory factory = new SequencingScheduleFactory(); PlasticSeqDatabase db = new PlasticSeqDatabase(); List<PlasticSeqSchedule> listPlasticHistory = new List<PlasticSeqSchedule>(); var seqStations = db.GetSequencingStationsBySequencingLocationId(locationId); foreach (var station in seqStations) { var schedule = factory.GetPlasticScheduleHistoryDetail(station, scheduleNum); listPlasticHistory.Add(schedule); } return listPlasticHistory; }