Fixed route
This commit is contained in:
@@ -56,9 +56,7 @@ namespace Microsoft.eShopWeb.Controllers
|
|||||||
return View(vm);
|
return View(vm);
|
||||||
}
|
}
|
||||||
|
|
||||||
[HttpGet("{id}")]
|
[HttpGet("[controller]/pic/{id}")]
|
||||||
[Route("[controller]/pic/{id}")]
|
|
||||||
// GET: /<controller>/pic/{id}
|
|
||||||
public IActionResult GetImage(int id)
|
public IActionResult GetImage(int id)
|
||||||
{
|
{
|
||||||
byte[] imageBytes;
|
byte[] imageBytes;
|
||||||
@@ -74,6 +72,7 @@ namespace Microsoft.eShopWeb.Controllers
|
|||||||
return File(imageBytes, "image/png");
|
return File(imageBytes, "image/png");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
public IActionResult Error()
|
public IActionResult Error()
|
||||||
{
|
{
|
||||||
return View();
|
return View();
|
||||||
|
|||||||
Reference in New Issue
Block a user