Ensures that a blog category exists.

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

Syntax

C#
public virtual BlogCategoryEntity EnsureCategoryExists(
	Guid blogId,
	string categoryName
)
Visual Basic
Public Overridable Function EnsureCategoryExists ( 
	blogId As Guid,
	categoryName As String
) As BlogCategoryEntity
Visual C++
public:
virtual BlogCategoryEntity^ EnsureCategoryExists(
	Guid blogId, 
	String^ categoryName
)
F#
abstract EnsureCategoryExists : 
        blogId : Guid * 
        categoryName : string -> BlogCategoryEntity 
override EnsureCategoryExists : 
        blogId : Guid * 
        categoryName : string -> BlogCategoryEntity 

Parameters

blogId
Type: System..::..Guid
Blog Id
categoryName
Type: System..::..String
Category Name

Return Value

Type: BlogCategoryEntity
Blog category retrieved by its primary id.

Implements

IBlogRepository..::..EnsureCategoryExists(Guid, String)

See Also