Skip to content

Commit 9f06538

Browse files
committed
Use property for title
1 parent c3fd455 commit 9f06538

File tree

4 files changed

+11
-6
lines changed

4 files changed

+11
-6
lines changed

RandomData2/RandomDataWebApi/Areas/HelpPage/Views/Help/Api.cshtml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
@using System.Web.Http
2+
@using RandomDataWebApi
23
@using RandomDataWebApi.Areas.HelpPage.Models
34
@model HelpPageApiModel
45

@@ -12,7 +13,7 @@
1213
<section class="featured">
1314
<div class="content-wrapper">
1415
<p>
15-
@Html.ActionLink("Random Data Web API", "Index")
16+
@Html.ActionLink(WebApiApplication.Title, "Index")
1617
</p>
1718
</div>
1819
</section>

RandomData2/RandomDataWebApi/Areas/HelpPage/Views/Help/Index.cshtml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,12 @@
22
@using System.Web.Http.Controllers
33
@using System.Web.Http.Description
44
@using System.Collections.ObjectModel
5+
@using RandomDataWebApi
56
@using RandomDataWebApi.Areas.HelpPage.Models
67
@model Collection<ApiDescription>
78

89
@{
9-
ViewBag.Title = "Random Data Web API";
10+
ViewBag.Title = WebApiApplication.Title;
1011

1112
// Group APIs by controller
1213
ILookup<HttpControllerDescriptor, ApiDescription> apiGroups = Model.ToLookup(api => api.ActionDescriptor.ControllerDescriptor);

RandomData2/RandomDataWebApi/Areas/HelpPage/Views/Help/JsonTest.cshtml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
1-
@{
2-
ViewBag.Title = "Random Data Web API - Test";
1+
@using RandomDataWebApi
2+
3+
@{
4+
ViewBag.Title = $"{WebApiApplication.Title} - Test";
35
}
46

57
<script src="https://ajax.aspnetcdn.com/ajax/jQuery/jquery-3.2.1.min.js" type="text/javascript"></script>
@@ -8,7 +10,7 @@
810
<section class="featured">
911
<div class="content-wrapper">
1012
<p>
11-
@Html.ActionLink("Random Data Web API", "Index")
13+
@Html.ActionLink(WebApiApplication.Title, "Index")
1214
</p>
1315
</div>
1416
</section>

RandomData2/RandomDataWebApi/Areas/HelpPage/Views/Help/ResourceModel.cshtml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
@using System.Web.Http
2+
@using RandomDataWebApi
23
@using RandomDataWebApi.Areas.HelpPage.ModelDescriptions
34
@model ModelDescription
45

@@ -7,7 +8,7 @@
78
<section class="featured">
89
<div class="content-wrapper">
910
<p>
10-
@Html.ActionLink("Random Data Web API", "Index")
11+
@Html.ActionLink(WebApiApplication.Title, "Index")
1112
</p>
1213
</div>
1314
</section>

0 commit comments

Comments
 (0)