コード例 #1
0
        public async Task <IPodcastModel> GetP2PBySlug(string slug)
        {
            if (slug == null)
            {
                throw new ArgumentNullException(nameof(slug));
            }

            P2P p2p = await _podcastRepository.GetP2PBySlug(slug);

            IPodcastModel podcastModel = await _podcastModelMapper.Map(p2p);

            return(podcastModel);
        }