// GET: Podcast public ActionResult Index() { var podcasts = _podcastRepository.GetPodcasts(); var podcastModels = Mapper.Map <IEnumerable <Podcast>, IEnumerable <PodcastModel> >(podcasts); return(View(podcastModels)); }
public async Task <IEnumerable <IPodcastModel> > GetPodcasts() { IEnumerable <Podcast> podcasts = await _podcastRepository.GetPodcasts(); IEnumerable <IPodcastModel> podcastModels = await _podcastModelMapper.Map(podcasts); return(podcastModels); }