From bc088beb831486182387f2c9c438c22d5c9169d9 Mon Sep 17 00:00:00 2001 From: Steve Smith Date: Sun, 30 Apr 2017 08:20:27 -0400 Subject: [PATCH] Fixed route --- src/Web/Controllers/CatalogController.cs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/Web/Controllers/CatalogController.cs b/src/Web/Controllers/CatalogController.cs index c414e68..0874cd3 100644 --- a/src/Web/Controllers/CatalogController.cs +++ b/src/Web/Controllers/CatalogController.cs @@ -56,9 +56,7 @@ namespace Microsoft.eShopWeb.Controllers return View(vm); } - [HttpGet("{id}")] - [Route("[controller]/pic/{id}")] - // GET: //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();