Method | Description | |
---|---|---|
BlogController ( IBlogRepository blogRepository, IDisqusCommentRepository commentRepository, IUrlShortener urlShortener, ISocialManager socialManager ) : System |
Initializes a new instance of the BlogController class.
|
Method | Description | |
---|---|---|
Archive ( int year, int month, int page = 1 ) : System.Web.Mvc.ActionResult | ||
Category ( string slug, int page = 1, string parentSlug = null ) : ActionResult | ||
GetSocialNetworks ( PostModel post ) : IEnumerable |
Gets the social network URLs and share counts for the specified post
|
|
Index ( int page = 1 ) : ActionResult | ||
Listing ( IEnumerable |
Returns a listing of blog posts
|
|
ShortUrl ( string alias ) : ActionResult | ||
ShortUrl ( PostModel post ) : string |
Gets the short URL for this blog post
|
|
Tag ( string slug, int page = 1 ) : ActionResult | ||
View ( int month, int year, string slug ) : ActionResult |
public BlogController ( IBlogRepository blogRepository, IDisqusCommentRepository commentRepository, IUrlShortener urlShortener, ISocialManager socialManager ) : System | ||
blogRepository | IBlogRepository | The blog post repository. |
commentRepository | IDisqusCommentRepository | The Disqus comment repository |
urlShortener | IUrlShortener | The URL shortener |
socialManager | ISocialManager | The social network manager used to get sharing URLs |
return | System |