C# 클래스 iBlog.WebUI.Controllers.BlogController

상속: Controller
파일 보기 프로젝트 열기: eshengsky/iBlog

공개 메소드들

메소드 설명
BlogController ( IPostRepository postRepository, ICategoryRepository categoryRepository ) : System
Category ( string id = "" ) : Task
Error404 ( ) : System.Web.Mvc.ViewResult
Error500 ( ) : System.Web.Mvc.ViewResult
GetPostList ( Filters filter ) : Task

获取文章列表

GetPreviewContent ( string id ) : Task

根据Id获取预览内容

비공개 메소드들

메소드 설명
Item ( string id ) : Task

메소드 상세

BlogController() 공개 메소드

public BlogController ( IPostRepository postRepository, ICategoryRepository categoryRepository ) : System
postRepository IPostRepository
categoryRepository ICategoryRepository
리턴 System

Category() 공개 메소드

public Category ( string id = "" ) : Task
id string
리턴 Task

Error404() 공개 메소드

public Error404 ( ) : System.Web.Mvc.ViewResult
리턴 System.Web.Mvc.ViewResult

Error500() 공개 메소드

public Error500 ( ) : System.Web.Mvc.ViewResult
리턴 System.Web.Mvc.ViewResult

GetPostList() 공개 메소드

获取文章列表
public GetPostList ( Filters filter ) : Task
filter iBlog.WebUI.Models.Filters
리턴 Task

GetPreviewContent() 공개 메소드

根据Id获取预览内容
public GetPreviewContent ( string id ) : Task
id string
리턴 Task