Ensures that a blog post exists, if not creates a new one. Used primarily for uploading files, where file upload can be performed before the post is entered.

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

Syntax

C#
BlogPostEntity EnsurePostExists(
	Guid postId
)
Visual Basic
Function EnsurePostExists ( 
	postId As Guid
) As BlogPostEntity
Visual C++
BlogPostEntity^ EnsurePostExists(
	Guid postId
)
F#
abstract EnsurePostExists : 
        postId : Guid -> BlogPostEntity 

Parameters

postId
Type: System..::..Guid
Blog post id.

Return Value

Type: BlogPostEntity
Blog post retrieved by its primary id.

See Also