Пример #1
0
 public PostControl()
 {
     _postRepository = new PostRepository();
     _validator      = new PostValidator();
 }
Пример #2
0
 public PostController(PostRepository postControl, PostValidator validator)
 {
     _postRepository = postControl;
     _validator      = validator;
 }