C# 클래스 Daniel15.Web.Controllers.BlogController

파일 보기 프로젝트 열기: Daniel15/Website

공개 메소드들

메소드 설명
BlogController ( IBlogRepository blogRepository, IDisqusCommentRepository commentRepository, IUrlShortener urlShortener, ISocialManager socialManager ) : System

Initializes a new instance of the BlogController class.

비공개 메소드들

메소드 설명
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 posts, int count, int page, string viewName = null, ListingViewModel viewModel = null ) : ActionResult

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

메소드 상세

BlogController() 공개 메소드

Initializes a new instance of the BlogController class.
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
리턴 System