public List <Location> FindByTripId(int tripId) { ITripDbProvider i = ObjectContainer.GetTripDbProvider(); Trip t = i.Read(tripId); return(t.Locations.ToList()); }
public Trip Get(int id) { ITripDbProvider db = ObjectContainer.GetTripDbProvider(); Trip trip = db.Read(id); trip.ArrangePoints(); return(trip); }
public List <Location> GetList(int tripId) { ITripDbProvider db = ObjectContainer.GetTripDbProvider(); return(db.Read(tripId).Locations.ToList()); }