Exemple #1
0
        public async Task <IPodcastModel> GetPodcastBySlug(string slug)
        {
            if (slug == null)
            {
                throw new ArgumentNullException(nameof(slug));
            }

            Podcast podcast = await _podcastRepository.GetPodcastBySlug(slug);

            IPodcastModel podcastModel = await _podcastModelMapper.Map(podcast);

            return(podcastModel);
        }