C# 클래스 InsanelySimpleBlog.Controllers.InsanelySimpleBlogPostController

We don't just rely on the namespace to differentiate our controller from other controllers that might be called "PostController" as currently Web API doesn't deal with two controllers in different namespaces with the same name.
상속: ApiController
파일 보기 프로젝트 열기: JamesRandall/Insanely-Simple-Blog 1 사용 예제들

공개 메소드들

메소드 설명
GetPost ( int id ) : PostViewModel
GetPosts ( int pageNumber, int pageSize, int categoryId = null, System.DateTime startDate = null, System.DateTime endDate = null ) : IEnumerable
InsanelySimpleBlogPostController ( ) : System
InsanelySimpleBlogPostController ( IPostsService postsService ) : System

메소드 상세

GetPost() 공개 메소드

public GetPost ( int id ) : PostViewModel
id int
리턴 InsanelySimpleBlog.ViewModel.PostViewModel

GetPosts() 공개 메소드

public GetPosts ( int pageNumber, int pageSize, int categoryId = null, System.DateTime startDate = null, System.DateTime endDate = null ) : IEnumerable
pageNumber int
pageSize int
categoryId int
startDate System.DateTime
endDate System.DateTime
리턴 IEnumerable

InsanelySimpleBlogPostController() 공개 메소드

public InsanelySimpleBlogPostController ( ) : System
리턴 System

InsanelySimpleBlogPostController() 공개 메소드

public InsanelySimpleBlogPostController ( IPostsService postsService ) : System
postsService IPostsService
리턴 System