private List <Station> fillStation(long id) { TripAccess db = new TripAccess(); var stations = db.GetTripStations(id); return(stations); }
public Stop(int id_trip, int id_station, string name_station, DateTime timestop, double distance) { TripAccess db = new TripAccess(); this.trip = db.GetOne(id_trip); this.station = new Station { id = id_station, name = name_station.Trim() }; this.timestop = timestop; this.distance = distance; }