Skip to content

Commit 8ba6f91

Browse files
committed
Add error page
1 parent 2e79190 commit 8ba6f91

File tree

2 files changed

+21
-0
lines changed

2 files changed

+21
-0
lines changed
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
@using RandomDataWebApi
2+
3+
@{
4+
ViewBag.Title = "Error";
5+
}
6+
7+
<link type="text/css" href="~/Areas/HelpPage/HelpPage.css" rel="stylesheet" />
8+
<div id="body" class="help-page">
9+
<section class="featured">
10+
<div class="content-wrapper">
11+
<p>
12+
@Html.ActionLink(WebApiApplication.Title, "Index")
13+
</p>
14+
</div>
15+
</section>
16+
<section class="content-wrapper main-content clear-fix">
17+
<h1>@ViewBag.Title</h1>
18+
<h2>The page was not found, or an unexpected error occurred.</h2>
19+
</section>
20+
</div>

RandomData2/RandomDataWebApi/RandomDataWebApi.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,7 @@
178178
<Content Include="Areas\HelpPage\Views\Help\Api.cshtml" />
179179
<Content Include="KTools.VersionIncrement.ps1" />
180180
<Content Include="Areas\HelpPage\Views\Help\JsonTest.cshtml" />
181+
<Content Include="Areas\HelpPage\Views\Shared\Error.cshtml" />
181182
<None Include="packages.config" />
182183
<None Include="Web.Debug.config">
183184
<DependentUpon>Web.config</DependentUpon>

0 commit comments

Comments
 (0)