Browse Source
Use status filter in GetCountAsync method in public blog post GetAllListAsync
pull/12073/head
Musa Demir
4 years ago
No known key found for this signature in database
GPG Key ID: 117DF92322553DC8
1 changed files with
1 additions and
1 deletions
-
modules/cms-kit/src/Volo.CmsKit.Public.Application/Volo/CmsKit/Public/Blogs/BlogPostPublicAppService.cs
|
|
|
@ -42,7 +42,7 @@ public class BlogPostPublicAppService : CmsKitPublicAppServiceBase, IBlogPostPub |
|
|
|
input.SkipCount, input.Sorting); |
|
|
|
|
|
|
|
return new PagedResultDto<BlogPostPublicDto>( |
|
|
|
await BlogPostRepository.GetCountAsync(blogId: blog.Id, authorId: input.AuthorId), |
|
|
|
await BlogPostRepository.GetCountAsync(blogId: blog.Id, statusFilter: BlogPostStatus.Published, authorId: input.AuthorId), |
|
|
|
ObjectMapper.Map<List<BlogPost>, List<BlogPostPublicDto>>(blogPosts)); |
|
|
|
} |
|
|
|
|
|
|
|
|