예제 #1
0
 public CommentServiceModel getCommentById(int id)
 {
     CommentsRepository repo = new CommentsRepository(entities);
     Comment comment = repo.GetCommentById(id);
     return DefectUtil.mapCommentEntityToModel(comment);
 }
예제 #2
0
 public void deleteCommentById(int id)
 {
     CommentsRepository repo = new CommentsRepository(entities);
     Comment comment = repo.GetCommentById(id);
     repo.DeleteComment(comment);
 }