コード例 #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();
 }
コード例 #2
0
 public void Update(CommentEntity comment)
 {
     contentRepository.UpdateComment(comment.ToDalComment());
     uow.Commit();
 }
コード例 #3
0
 public void Create(CommentEntity comment)
 {
     contentRepository.AddComment(comment.ToDalComment());
     uow.Commit();
 }