Browse Source

improve

pull/21348/head
liangshiwei 2 years ago
parent
commit
9c467d0414
  1. 2
      modules/cms-kit/src/Volo.CmsKit.Admin.HttpApi/Volo/CmsKit/Admin/Blogs/BlogAdminController.cs
  2. 2
      modules/cms-kit/src/Volo.CmsKit.EntityFrameworkCore/Volo/CmsKit/Blogs/EfCoreBlogPostRepository.cs

2
modules/cms-kit/src/Volo.CmsKit.Admin.HttpApi/Volo/CmsKit/Admin/Blogs/BlogAdminController.cs

@ -67,7 +67,7 @@ public class BlogAdminController : CmsKitAdminController, IBlogAdminAppService
[Route("all")] [Route("all")]
public Task<ListResultDto<BlogDto>> GetAllListAsync() public Task<ListResultDto<BlogDto>> GetAllListAsync()
{ {
throw new NotImplementedException(); return BlogAdminAppService.GetAllListAsync();
} }
[HttpPut] [HttpPut]

2
modules/cms-kit/src/Volo.CmsKit.EntityFrameworkCore/Volo/CmsKit/Blogs/EfCoreBlogPostRepository.cs

@ -161,7 +161,7 @@ public class EfCoreBlogPostRepository : EfCoreRepository<ICmsKitDbContext, BlogP
.AnyAsync(x => x.Status == BlogPostStatus.WaitingForReview, GetCancellationToken(cancellationToken)); .AnyAsync(x => x.Status == BlogPostStatus.WaitingForReview, GetCancellationToken(cancellationToken));
} }
public async Task UpdateBlogAsync(Guid sourceBlogId, Guid? targetBlogId, CancellationToken cancellationToken = default) public async Task UpdateBlogAsync(Guid sourceBlogId, Guid? targetBlogId = null, CancellationToken cancellationToken = default)
{ {
if (targetBlogId != null) if (targetBlogId != null)
{ {

Loading…
Cancel
Save