Use new API for blog

This commit is contained in:
Robert Marshall 2020-04-11 13:37:14 +01:00
parent e389b2404a
commit 25c320bf6b
17 changed files with 356 additions and 314 deletions

View file

@ -4,9 +4,9 @@ using Website.Data;
namespace Website.ViewComponents {
public class BlogNavigationViewComponent:ViewComponent {
private readonly BlogRepository _repo;
private readonly IBlogApi _repo;
public BlogNavigationViewComponent(BlogRepository repo) {
public BlogNavigationViewComponent(IBlogApi repo) {
_repo = repo;
}
@ -15,4 +15,4 @@ namespace Website.ViewComponents {
return View(posts);
}
}
}
}