Skip to content

Commit

Permalink
Fixed route
Browse files Browse the repository at this point in the history
  • Loading branch information
ardalis committed Apr 30, 2017
1 parent dfe0106 commit bc088be
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/Web/Controllers/CatalogController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,7 @@ public async Task<IActionResult> Index(int? BrandFilterApplied, int? TypesFilter
return View(vm);
}

[HttpGet("{id}")]
[Route("[controller]/pic/{id}")]
// GET: /<controller>/pic/{id}
[HttpGet("[controller]/pic/{id}")]
public IActionResult GetImage(int id)
{
byte[] imageBytes;
Expand All @@ -74,6 +72,7 @@ public IActionResult GetImage(int id)
return File(imageBytes, "image/png");
}


public IActionResult Error()
{
return View();
Expand Down

0 comments on commit bc088be

Please sign in to comment.