public void InsertNew(ReplyCommentDTO entity)
 {
     unitOfWork.ReplyCommentRepository.InsertNew(new ReplyComment
     {
         Id            = entity.Id,
         MainCommentId = entity.MainCommentId,
         ReplyContent  = entity.ReplyContent,
         UserName      = entity.UserName
     });
 }
        public List <ReplyCommentDTO> GetAll()
        {
            List <ReplyCommentDTO> comments = new List <ReplyCommentDTO>();

            foreach (var comment in unitOfWork.ReplyCommentRepository.GetAll())
            {
                var newComment = new ReplyCommentDTO();
                newComment.Id            = comment.Id;
                newComment.ReplyContent  = comment.ReplyContent;
                newComment.MainCommentId = comment.MainCommentId;
                newComment.UserName      = comment.UserName;
                comments.Add(newComment);
            }
            return(comments);
        }