Example #1
0
 public PodcastViewModel()
 {
     PodcastGroups    = Enumerable.Empty <IGrouping <string, Podcast> >();
     PodcastItems     = Enumerable.Empty <PodcastItem>();
     PodcastSortItems = PodcastRepository.GetPodcastSortItems().Select(item => new SelectListItem {
         Text = item.Name, Value = item.Value.ToString()
     });
     PodcastFilterItems = PodcastRepository.GetPodcastFilterItems().Select(item => new SelectListItem {
         Text = item.Name, Value = item.Value.ToString()
     });
 }