Browse Source

Update CommentAdminAppService.cs

pull/19919/head
Berkan Sasmaz 2 years ago
parent
commit
84c90d9611
  1. 2
      modules/cms-kit/src/Volo.CmsKit.Admin.Application/Volo/CmsKit/Admin/Comments/CommentAdminAppService.cs

2
modules/cms-kit/src/Volo.CmsKit.Admin.Application/Volo/CmsKit/Admin/Comments/CommentAdminAppService.cs

@ -90,7 +90,7 @@ public class CommentAdminAppService : CmsKitAdminAppServiceBase, ICommentAdminAp
public async Task UpdateApprovalStatusAsync(Guid id, CommentApprovalDto input)
{
var comment = await CommentRepository.GetAsync(id);
comment.SetApprovalStatus(input.IsApproved);
comment.IsApproved = input.IsApproved;
await CommentRepository.UpdateAsync(comment);
}

Loading…
Cancel
Save