Esempio n. 1
0
 /// <summary>
 /// Add new instance of comment in database.
 /// </summary>
 /// <param name="comment"></param>
 public void Create(CommentEntity comment)
 {
     if (comment == null)
     {
         throw new ArgumentNullException(nameof(comment));
     }
     repository.Create(comment.ToDalComment());
     uow.Commit();
 }
Esempio n. 2
0
 public void UpdateComment(CommentEntity comment)
 {
     commentRepository.Update(comment.ToDalComment());
     uow.Commit();
 }
 public void CreateCommentEntity(CommentEntity comment)
 {
     uow.CommentRepository.Create(comment.ToDalComment());
     uow.Commit();
 }
 public void CreateCommentEntity(CommentEntity comment)
 {
     uow.CommentRepository.Create(comment.ToDalComment());
     uow.Commit();
 }
Esempio n. 5
0
 /// <summary>
 /// Deletes comment entity
 /// </summary>
 /// <param name="commentEntity">Base entity for removing</param>
 public void Delete(CommentEntity commentEntity)
 {
     commentRepository.Delete(commentEntity.ToDalComment());
     uow.Commit();
 }
Esempio n. 6
0
 public void Create(CommentEntity comment)
 {
     contentRepository.AddComment(comment.ToDalComment());
     uow.Commit();
 }