public async Task <ActionResult> Index(string id) { var contentItem = await _contentManager.GetAsync(id); if (contentItem == null || !contentItem.Published) { return(NotFound()); } return(new ContentResult { Content = (await _rssFeedService.CreateFeedAsync(contentItem, Url.ActionContext)).ToString(), ContentType = "text/xml", StatusCode = 200 }); }