public List<CommentLike> Get(int commentId)
{
var commentLikes = new List<CommentLike>();
try
{
var db = _commentLikeRepository.Find(a => a.CommentId == commentId, true).ToList();
db.ForEach(a => commentLikes.Add(CommentLikeMapper.ToDto(a)));
}
catch (Exception ex)
{
throw new BlogException(ex.Message, ex.InnerException);
}
return commentLikes;
}