public List<Paragraph> GetTimetable(StopsService.Line line) { List<TimetableDTO> timetable = new List<TimetableDTO>(); foreach (StopsService.Timetable obj in stopsService.GetTimetable(line.RouteID)) { timetable.Add(new TimetableDTO(obj.DayName, obj.Table, obj.Legend)); } return PrepareTimetable(timetable); }
public StopsService.Line[] GetLinesForStop(StopsService.Stop stop) { return stopsService.GetLinesForStop(stop.ID); }