C# Class BlogEngine.Core.Json.JsonPosts

List of posts
Datei anzeigen Open project: rasmuskl/ReSharperCourse

Public Methods

Method Description
GetPager ( int page, int pageSize ) : string

Builds pager control for posts page

GetPosts ( int page, int pageSize, string postType, string filter, string title ) : List

Gets post list based on selection for current page

Private Methods

Method Description
GetAuthor ( string author ) : string
GetCategories ( ICollection categories ) : string
GetComments ( ICollection comments, string postUrl ) : string
GetTags ( ICollection tags ) : string

Method Details

GetPager() public static method

Builds pager control for posts page
public static GetPager ( int page, int pageSize ) : string
page int Current Page Number
pageSize int Page Size
return string

GetPosts() public static method

Gets post list based on selection for current page
public static GetPosts ( int page, int pageSize, string postType, string filter, string title ) : List
page int Current page
pageSize int Page Size
postType string Selected post type: draft, published or all
filter string Secondary filter: category, tag, author or all
title string Value selected in secondary filter
return List