public PodcastIndexViewModel Search(string query = null) { var viewModel = new PodcastIndexViewModel { Items = _podcastRepository.Search(query), EpisodeCount = _episodeRepository.EpisodeCount() }; return(viewModel); }
public PodcastIndexViewModel Search(string query = null) { var viewModel = new PodcastIndexViewModel { Items = _podcastRepository.Search(query), EpisodeCount = _episodeRepository.EpisodeCount() }; return(viewModel); }