public async Task <CommentDto> UpdateCommentAsync(UpdateCommentRequest updateComment) { var commentEntity = await _commentQuery.GetCommentByIdAsync(updateComment.IdComment.ToInt().Value); if (commentEntity is null) { return(null); } var commentUpdate = BuilderUpdateComment(commentEntity, updateComment); await _commentRepository.UpdateCommentAsync(commentUpdate); var commentDto = CommentDto.BuilderCommentDto(commentUpdate); return(commentDto); }