public async Task <List <Place> > GetAllForPoint(int pointId)
        {
            var point = await _pointRepository.GetById(pointId);

            var places = await _placeRepository.GetAll();

            var pointPlaces = places.Where(p => p.PointId == pointId);

            return(pointPlaces.ToList());
        }
Exemple #2
0
        private void LoadPlaceData()
        {
            TracktorDb         context   = new TracktorDb();
            PlaceRepository    placeRepo = new PlaceRepository(context);
            List <PlaceEntity> places    = placeRepo.GetAll().ToList();

            AllPlaces = new BindingList <PlaceEntity>(places);
        }
Exemple #3
0
 public IEnumerable <Place> GetAll()
 {
     return(_placeRepository.GetAll());
 }