public bool Delete(int commentId)
{
try
{
var comment = _commentRepository.Find(a => a.CommentId == commentId, false).FirstOrDefault();
if (comment != null)
{
_commentRepository.Delete(comment);
return true;
}
return false;
}
catch (Exception ex)
{
throw new BlogException(ex.Message, ex.InnerException);
}
}
}