@ -48,7 +48,7 @@ namespace Volo.CmsKit.Public.Comments
}
[Authorize]
public virtual async Task < CommentD to> CreateAsync ( string entityType , string entityId , CreateCommentInput input )
public virtual async Task < CommentD etailedD to> CreateAsync ( string entityType , string entityId , CreateCommentInput input )
{
var user = await CmsUserLookupService . GetByIdAsync ( CurrentUser . GetId ( ) ) ;
@ -75,11 +75,11 @@ namespace Volo.CmsKit.Public.Comments
Id = comment . Id
} ) ;
return ObjectMapper . Map < Comment , CommentD to> ( comment ) ;
return ObjectMapper . Map < Comment , CommentD etailedD to> ( comment ) ;
}
[Authorize]
public virtual async Task < CommentD to> UpdateAsync ( Guid id , UpdateCommentInput input )
public virtual async Task < CommentD etailedD to> UpdateAsync ( Guid id , UpdateCommentInput input )
{
var comment = await CommentRepository . GetAsync ( id ) ;
@ -92,7 +92,7 @@ namespace Volo.CmsKit.Public.Comments
var updatedComment = await CommentRepository . UpdateAsync ( comment ) ;
return ObjectMapper . Map < Comment , CommentD to> ( updatedComment ) ;
return ObjectMapper . Map < Comment , CommentD etailedD to> ( updatedComment ) ;
}
[Authorize]
@ -123,7 +123,7 @@ namespace Volo.CmsKit.Public.Comments
parentComment . Replies = comments
. Where ( c = > c . Comment . RepliedCommentId = = parentComment . Id )
. Select ( c = > ObjectMapper . Map < Comment , CommentD to> ( c . Comment ) )
. Select ( c = > ObjectMapper . Map < Comment , CommentD etailedD to> ( c . Comment ) )
. ToList ( ) ;
foreach ( var reply in parentComment . Replies )