public PostController(IBlogRepository repo, BlogContext _db) { _repo = repo; db = _db; }
public BlogRepository(BlogContext ctx) { _ctx = ctx; }