コード例 #1
0
        public IActionResult Created(string id)
        {
            var podcast = _podcastRepository.GetById(id);

            if (podcast is null)
            {
                return(NotFound());
            }

            var feedUrl = Url.Action(nameof(Feed), nameof(PodcastController).RemoveSuffix(nameof(Controller)),
                                     new { podcast.Id }, Request.Scheme);

            return(View(model: feedUrl));
        }