Use full post instead of snippet

This commit is contained in:
Robert Marshall 2020-01-03 21:13:22 +00:00
parent 60482dea90
commit 64a225c8b9

View file

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