Example #1
0
 public void Update(PostEntity post)
 {
     NullRefCheck();
     ArgumentNullCheck(post);
     postRepository.Update(post.ToDalPost());
     uow.Commit();
 }
Example #2
0
 public void DeletePost(PostEntity oldPost)
 {
     NullRefCheck();
     ArgumentNullCheck(oldPost);
     postRepository.Delete(oldPost.ToDalPost());
     uow.Commit();
 }
 public void CreatePost(PostEntity post)
 {
     postRepository.Create(post.ToDalPost());
     uow.Commit();
 }