This website works better with JavaScript.
Home
Explore
Help
Sign In
ayan.poddar
/
eShopOnContainers
Watch
1
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Projects
0
Releases
19
Wiki
Activity
Browse Source
Fix link to error view
pull/73/head
dsanz
8 years ago
parent
812552cf3f
commit
2b67a3b4b2
2 changed files
with
7 additions
and
2 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+6
-1
src/Web/WebMonolithic/eShopWeb/Controllers/CatalogController.cs
+1
-1
src/Web/WebMonolithic/eShopWeb/Startup.cs
+ 6
- 1
src/Web/WebMonolithic/eShopWeb/Controllers/CatalogController.cs
View File
@ -65,6 +65,11 @@ namespace eShopWeb.Controllers
Byte
[
]
b
=
System
.
IO
.
File
.
ReadAllBytes
(
path
)
;
return
File
(
b
,
"image/png"
)
;
}
}
public
IActionResult
Error
(
)
{
return
View
(
)
;
}
}
}
+ 1
- 1
src/Web/WebMonolithic/eShopWeb/Startup.cs
View File
@ -63,7 +63,7 @@ namespace eShopWeb
}
else
{
app
.
UseExceptionHandler
(
"/
Home
/Error"
)
;
app
.
UseExceptionHandler
(
"/
Catalog
/Error"
)
;
}
app
.
UseStaticFiles
(
)
;
Write
Preview
Loading…
Cancel
Save