Example #1
0
 public PostRepository(PostDbContext dbContext)
 {
     _dbContext = dbContext;
 }
 public PostControl(PostDbContext dbContext)
 {
     _postRepository = new PostRepository(dbContext);
     _validator      = new PostValidator();
 }