Method that gets a paged collection of blog posts.

Namespace: MonoSoftware.MonoX.BusinessLayer
Assembly: MonoX (in MonoX.dll) Version: 5.1.40.5065 (5.1.40.5065)

Syntax

C#
public virtual EntityCollection<BlogPostEntity> GetBlogPosts(
	Guid userId,
	Guid categoryId,
	string blogSlug,
	string searchAction,
	string searchValue,
	bool onlyPublished,
	int pageNumber,
	int pageSize,
	out int recordCount
)
Visual Basic
Public Overridable Function GetBlogPosts ( 
	userId As Guid,
	categoryId As Guid,
	blogSlug As String,
	searchAction As String,
	searchValue As String,
	onlyPublished As Boolean,
	pageNumber As Integer,
	pageSize As Integer,
	<OutAttribute> ByRef recordCount As Integer
) As EntityCollection(Of BlogPostEntity)
Visual C++
public:
virtual EntityCollection<BlogPostEntity^>^ GetBlogPosts(
	Guid userId, 
	Guid categoryId, 
	String^ blogSlug, 
	String^ searchAction, 
	String^ searchValue, 
	bool onlyPublished, 
	int pageNumber, 
	int pageSize, 
	[OutAttribute] int% recordCount
)
F#
abstract GetBlogPosts : 
        userId : Guid * 
        categoryId : Guid * 
        blogSlug : string * 
        searchAction : string * 
        searchValue : string * 
        onlyPublished : bool * 
        pageNumber : int * 
        pageSize : int * 
        recordCount : int byref -> EntityCollection<BlogPostEntity> 
override GetBlogPosts : 
        userId : Guid * 
        categoryId : Guid * 
        blogSlug : string * 
        searchAction : string * 
        searchValue : string * 
        onlyPublished : bool * 
        pageNumber : int * 
        pageSize : int * 
        recordCount : int byref -> EntityCollection<BlogPostEntity> 

Parameters

userId
Type: System..::..Guid
User id.
categoryId
Type: System..::..Guid
Category id
blogSlug
Type: System..::..String
Blog slug
searchAction
Type: System..::..String
Search action - tag, author
searchValue
Type: System..::..String
Search value - tag name, author name
onlyPublished
Type: System..::..Boolean
Get only published
pageNumber
Type: System..::..Int32
Page number
pageSize
Type: System..::..Int32
Page size
recordCount
Type: System..::..Int32%
Number of records fetched

Return Value

Type: EntityCollection<(Of <(<'BlogPostEntity>)>)>
Generic collection of blog post entities

Implements

IBlogBLL..::..GetBlogPosts(Guid, Guid, String, String, String, Boolean, Int32, Int32, Int32%)

See Also