Class BlogPostManager
Inheritance
BlogPostManager
Assembly: Volo.CmsKit.Domain.dll
Syntax
public class BlogPostManager : DomainService, IDomainService, ITransientDependency
Constructors
BlogPostManager(IBlogPostRepository, IBlogRepository, IDefaultBlogFeatureProvider)
Declaration
public BlogPostManager(IBlogPostRepository blogPostRepository, IBlogRepository blogRepository, IDefaultBlogFeatureProvider blogFeatureProvider)
Parameters
Properties
BlogFeatureProvider
Declaration
protected IDefaultBlogFeatureProvider BlogFeatureProvider { get; }
Property Value
BlogPostRepository
Declaration
protected IBlogPostRepository BlogPostRepository { get; }
Property Value
BlogRepository
Declaration
protected IBlogRepository BlogRepository { get; }
Property Value
Methods
CheckBlogExistenceAsync(Guid)
Declaration
protected virtual Task CheckBlogExistenceAsync(Guid blogId)
Parameters
Type |
Name |
Description |
Guid |
blogId |
|
Returns
CheckSlugExistenceAsync(Guid, string)
Declaration
protected virtual Task CheckSlugExistenceAsync(Guid blogId, string slug)
Parameters
Returns
CreateAsync(CmsUser, Blog, string, string, BlogPostStatus, string, string, Guid?)
Declaration
public virtual Task<BlogPost> CreateAsync(CmsUser author, Blog blog, string title, string slug, BlogPostStatus status, string shortDescription = null, string content = null, Guid? coverImageMediaId = null)
Parameters
Returns
SetSlugUrlAsync(BlogPost, string)
Declaration
public virtual Task SetSlugUrlAsync(BlogPost blogPost, string newSlug)
Parameters
Returns
Implements
Extension Methods