Class BlogPostPublicAppService
Inheritance
BlogPostPublicAppService
Assembly: Volo.CmsKit.Public.Application.dll
Syntax
[RequiresFeature(new string[] { "CmsKit.BlogEnable" })]
[RequiresGlobalFeature(typeof(BlogsFeature))]
public class BlogPostPublicAppService : CmsKitPublicAppServiceBase, IAvoidDuplicateCrossCuttingConcerns, IValidationEnabled, IUnitOfWorkEnabled, IAuditingEnabled, IGlobalFeatureCheckingEnabled, ITransientDependency, IBlogPostPublicAppService, IApplicationService, IRemoteService
Constructors
BlogPostPublicAppService(IBlogRepository, IBlogPostRepository, ITagRepository, BlogPostManager)
Declaration
public BlogPostPublicAppService(IBlogRepository blogRepository, IBlogPostRepository blogPostRepository, ITagRepository tagRepository, BlogPostManager blogPostManager)
Parameters
Properties
BlogPostManager
Declaration
protected BlogPostManager BlogPostManager { get; }
Property Value
BlogPostRepository
Declaration
protected IBlogPostRepository BlogPostRepository { get; }
Property Value
BlogRepository
Declaration
protected IBlogRepository BlogRepository { get; }
Property Value
TagRepository
Declaration
protected ITagRepository TagRepository { get; }
Property Value
Methods
DeleteAsync(Guid)
Declaration
[Authorize]
public virtual Task DeleteAsync(Guid id)
Parameters
Type |
Name |
Description |
Guid |
id |
|
Returns
GetAsync(string, string)
Declaration
public virtual Task<BlogPostCommonDto> GetAsync(string blogSlug, string blogPostSlug)
Parameters
Returns
GetAuthorHasBlogPostAsync(Guid)
Declaration
public virtual Task<CmsUserDto> GetAuthorHasBlogPostAsync(Guid id)
Parameters
Type |
Name |
Description |
Guid |
id |
|
Returns
GetAuthorsHasBlogPostsAsync(BlogPostFilteredPagedAndSortedResultRequestDto)
Declaration
public virtual Task<PagedResultDto<CmsUserDto>> GetAuthorsHasBlogPostsAsync(BlogPostFilteredPagedAndSortedResultRequestDto input)
Parameters
Returns
GetFavoriteUserIdAsync(bool?)
Declaration
protected virtual Task<Guid?> GetFavoriteUserIdAsync(bool? filterOnFavorites)
Parameters
Type |
Name |
Description |
bool? |
filterOnFavorites |
|
Returns
GetListAsync(string, BlogPostGetListInput)
Declaration
public virtual Task<PagedResultDto<BlogPostCommonDto>> GetListAsync(string blogSlug, BlogPostGetListInput input)
Parameters
Returns
GetTagNameAsync(Guid)
Declaration
public Task<string> GetTagNameAsync(Guid tagId)
Parameters
Type |
Name |
Description |
Guid |
tagId |
|
Returns
Implements
Extension Methods