コード例 #1
0
        public async Task <IActionResult> P2PBySlug(string slug)
        {
            if (!ModelState.IsValid)
            {
                return(BadRequest(ModelState));
            }

            IPodcastModel p2p = await _podcastService.GetP2PBySlug(slug);

            if (p2p == null)
            {
                return(NotFound());
            }

            return(Ok(p2p));
        }