Example #1
0
 public PostController(IBlogRepository repo, BlogContext _db)
 {
     _repo = repo;
     db = _db;
 }
Example #2
0
 public BlogRepository(BlogContext ctx)
 {
     _ctx = ctx;
 }