Use full post instead of snippet
This commit is contained in:
parent
60482dea90
commit
64a225c8b9
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue