//Laad de lijst van warehouses in (observable collection) private void LoadData() { foreach (Observation item in observationRepository.GetObservations()) { observations.Add(item); } }
public async Task <ObservationModel> Handle(ObservationQuery request, CancellationToken cancellationToken) { var result = await _observationRepository.GetObservations(request.Id); var model = new ObservationModel { Observations = result }; return(model); }
public List <Observation> GetObservations() { return(repository.GetObservations()); }