Add blog post preview

This commit is contained in:
Robert Marshall 2019-04-28 11:20:06 +01:00
parent a47f18533b
commit fa143f5ab4
4 changed files with 20 additions and 5 deletions

View file

@ -18,7 +18,7 @@ namespace Website.Controllers
public async Task<IActionResult> Index()
{
var post = await _blogRepo.GetLatestPostAsync();
var model = new BlogPostViewModel(post);
var model = new BlogPostPreviewViewModel(post);
return View(model);
}
}