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
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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