Add comment for Exercise 14.2

This commit is contained in:
Mark J Price 2023-02-15 11:44:33 +00:00
parent ec19d71c40
commit 715df01440
2 changed files with 6 additions and 0 deletions

View file

@ -164,6 +164,9 @@ namespace Northwind.Mvc.Controllers
return View(model);
}
// Matches /home/categorydetail/{id} by default so to
// match /category/{id}, decorate with the following:
// [Route("category/{id}")]
public async Task<IActionResult> CategoryDetail(int? id)
{
if (!id.HasValue)

View file

@ -164,6 +164,9 @@ namespace Northwind.Mvc.Controllers
return View(model);
}
// Matches /home/categorydetail/{id} by default so to
// match /category/{id}, decorate with the following:
// [Route("category/{id}")]
public async Task<IActionResult> CategoryDetail(int? id)
{
if (!id.HasValue)