Browse Source

Fixed route

main
Steve Smith 9 years ago
parent
commit
bc088beb83
  1. 5
      src/Web/Controllers/CatalogController.cs

5
src/Web/Controllers/CatalogController.cs

@ -56,9 +56,7 @@ namespace Microsoft.eShopWeb.Controllers
return View(vm);
}
[HttpGet("{id}")]
[Route("[controller]/pic/{id}")]
// GET: /<controller>/pic/{id}
[HttpGet("[controller]/pic/{id}")]
public IActionResult GetImage(int id)
{
byte[] imageBytes;
@ -74,6 +72,7 @@ namespace Microsoft.eShopWeb.Controllers
return File(imageBytes, "image/png");
}
public IActionResult Error()
{
return View();

Loading…
Cancel
Save