示例#1
0
 public async Task <ActionResult <CommentViewModel> > AddComment(
     Guid releaseId, Guid contentSectionId, Guid contentBlockId, AddOrUpdateCommentRequest request)
 {
     return(await _contentService
            .AddCommentAsync(releaseId, contentSectionId, contentBlockId, request)
            .HandleFailuresOrOk());
 }
示例#2
0
 public async Task <ActionResult <CommentViewModel> > UpdateComment(Guid commentId, AddOrUpdateCommentRequest request)
 {
     return(await _contentService
            .UpdateCommentAsync(commentId, request)
            .HandleFailuresOrOk());
 }