1234567891011121314151617181920212223242526272829303132333435363738394041 |
- @using System.Web.Http
- @using System.Web.Http.Controllers
- @using System.Web.Http.Description
- @using System.Collections.ObjectModel
- @using Authentication_test.Areas.HelpPage.Models
- @model Collection<ApiDescription>
-
- @{
- ViewBag.Title = "ASP.NET Web API Help Page";
-
- // Group APIs by controller
- ILookup<HttpControllerDescriptor, ApiDescription> apiGroups = Model.ToLookup(api => api.ActionDescriptor.ControllerDescriptor);
- }
-
- <header>
- <div class="content-wrapper">
- <div class="float-left">
- <h1>@ViewBag.Title</h1>
- </div>
- </div>
- </header>
- <div id="body">
- <section class="featured">
- <div class="content-wrapper">
- <h2>Introduction</h2>
- <p>
- Provide a general description of your APIs here.
- </p>
- </div>
- </section>
- <section class="content-wrapper main-content clear-fix">
- @foreach (var group in apiGroups)
- {
- @Html.DisplayFor(m => group, "ApiGroup")
- }
- </section>
- </div>
-
- @section Scripts {
- <link type="text/css" href="~/Areas/HelpPage/HelpPage.css" rel="stylesheet" />
- }
|