Get a blog post (testing mysql connection)

This commit is contained in:
Robert Marshall 2019-04-14 11:35:40 +01:00
parent 19c3c49f4d
commit 5a0d0933ce
6 changed files with 20 additions and 7 deletions

View file

@ -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);
}
}