public IEnumerable <Observation> GetAll(AuthUser authUser, int contextoAno) { var observations = _observationRepository.GetAll(authUser, contextoAno); var enumerable = observations as Observation[] ?? observations.ToArray(); foreach (var observation in enumerable) { observation.Observer = _observationRepository.GetObserver(observation.ObserverId); observation.Observed = _observationRepository.GetObserved(observation.ObservedId); } return(enumerable); }