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#
public virtual BlogPostEntity EnsurePostExists(
	Guid postId
)
Visual Basic
Public Overridable Function EnsurePostExists ( 
	postId As Guid
) As BlogPostEntity
Visual C++
public:
virtual BlogPostEntity^ EnsurePostExists(
	Guid postId
)
F#
abstract EnsurePostExists : 
        postId : Guid -> BlogPostEntity 
override EnsurePostExists : 
        postId : Guid -> BlogPostEntity 

Parameters

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

Return Value

Type: BlogPostEntity
Blog post retrieved by its primary id.

Implements

IBlogBLL..::..EnsurePostExists(Guid)

See Also