Get a blog post (testing mysql connection)
This commit is contained in:
parent
19c3c49f4d
commit
5a0d0933ce
6 changed files with 20 additions and 7 deletions
|
@ -25,7 +25,7 @@ namespace Website.Controllers
|
|||
|
||||
public async Task<IActionResult> View(int id)
|
||||
{
|
||||
var post = await _repo.GetPost(id);
|
||||
var post = await _repo.GetPostAsync(id);
|
||||
return View(post);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue