private void SearchDuplicateMovies(SortDescriptor sort) { Movies.Clear(); using (var repo = new RepositoryService()) { foreach (var movie in repo.FindDuplicateMovies(sort)) { Movies.Add(new MovieItemViewModel(movie.MovieId)); } } }