public void Create(CommentDTO comment)
 {
     Comment com = new Comment
     {
         Text = comment.Text,
         CreationDate = DateTime.Now,
         ArticleId = comment.ArticleId,
         ProfileId = comment.ProfileId
     };
     Database.Comments.Create(com);
     Database.Save();
 }
 public void Update(CommentDTO comment)
 {
     Mapper.CreateMap<CommentDTO, Comment>();
     Comment updateComment = Mapper.Map<CommentDTO, Comment>(comment);
     Database.Comments.Update(updateComment);
 }