public List<Comment> GetReplies(int commentId)
{
var comments = new List<Comment>();
try
{
var db = _commentRepository.Find(a => a.ParentCommentId == commentId, null, "ParentComment,CommentLikes").OrderByDescending(a => a.CreatedDate).ToList();
db.ForEach(a => comments.Add(CommentMapper.ToDto(a)));
}
catch (Exception ex)
{
throw new BlogException(ex.Message, ex.InnerException);
}
return comments;
}