|
|
|
@ -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(); |
|
|
|
|