private void ConvertInspections() { if (SelectedFestival != null) { _inspectionRepository = new InspectionRepository(); SelectedFestivalInspections = new ObservableCollection <InspectionViewModel>( _inspectionRepository.GetInspections() .Where(e => e.QuestionList.Festival.Id == SelectedFestival.Id) .Select(e => new InspectionViewModel(e)) .ToList()); RaisePropertyChanged("SelectedFestivalInspections"); } }