mirror of
https://github.com/markjprice/cs11dotnet7.git
synced 2025-12-06 05:32:03 +01:00
Add comment for Exercise 14.2
This commit is contained in:
parent
ec19d71c40
commit
715df01440
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue