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()); }
private void LoadPlaceData() { TracktorDb context = new TracktorDb(); PlaceRepository placeRepo = new PlaceRepository(context); List <PlaceEntity> places = placeRepo.GetAll().ToList(); AllPlaces = new BindingList <PlaceEntity>(places); }
public IEnumerable <Place> GetAll() { return(_placeRepository.GetAll()); }