Пример #1
0
        public List <Location> FindByTripId(int tripId)
        {
            ITripDbProvider i = ObjectContainer.GetTripDbProvider();
            Trip            t = i.Read(tripId);

            return(t.Locations.ToList());
        }
Пример #2
0
        public Trip Get(int id)
        {
            ITripDbProvider db = ObjectContainer.GetTripDbProvider();

            Trip trip = db.Read(id);

            trip.ArrangePoints();

            return(trip);
        }
Пример #3
0
        public List <Location> GetList(int tripId)
        {
            ITripDbProvider db = ObjectContainer.GetTripDbProvider();

            return(db.Read(tripId).Locations.ToList());
        }