Use new API for blog
This commit is contained in:
parent
e389b2404a
commit
25c320bf6b
17 changed files with 356 additions and 314 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue