C# Class Daniel15.Web.Controllers.FeedController

Handles rendering various feeds
Inheritance: Microsoft.AspNetCore.Mvc.Controller
Show file Open project: Daniel15/Website

Public Methods

Method Description
FeedController ( IBlogRepository blogRepository, IProjectRepository projectRepository, ISiteConfiguration siteConfig, IUrlShortener urlShortener ) : System.Collections.Generic

Initializes a new instance of the FeedController class.

Private Methods

Method Description
BlogCategory ( string slug, string parentSlug = null ) : Microsoft.AspNetCore.Mvc.ActionResult
BlogLatest ( ) : Microsoft.AspNetCore.Mvc.ActionResult
RenderFeed ( IList posts, Daniel15.Web.ViewModels.Blog.FeedViewModel model ) : Microsoft.AspNetCore.Mvc.ActionResult

Renders the specified list of posts to an RSS feed

ShortUrl ( PostModel post ) : string

Gets the short URL for this blog post

Sitemap ( ) : Microsoft.AspNetCore.Mvc.ActionResult

Method Details

FeedController() public method

Initializes a new instance of the FeedController class.
public FeedController ( IBlogRepository blogRepository, IProjectRepository projectRepository, ISiteConfiguration siteConfig, IUrlShortener urlShortener ) : System.Collections.Generic
blogRepository IBlogRepository The blog repository.
projectRepository IProjectRepository Project repository
siteConfig ISiteConfiguration Site configuration
urlShortener IUrlShortener URL shortener
return System.Collections.Generic