You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

Index.cshtml 1.1KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. @using System.Web.Http
  2. @using System.Web.Http.Controllers
  3. @using System.Web.Http.Description
  4. @using System.Collections.ObjectModel
  5. @using Authentication_test.Areas.HelpPage.Models
  6. @model Collection<ApiDescription>
  7. @{
  8. ViewBag.Title = "ASP.NET Web API Help Page";
  9. // Group APIs by controller
  10. ILookup<HttpControllerDescriptor, ApiDescription> apiGroups = Model.ToLookup(api => api.ActionDescriptor.ControllerDescriptor);
  11. }
  12. <header>
  13. <div class="content-wrapper">
  14. <div class="float-left">
  15. <h1>@ViewBag.Title</h1>
  16. </div>
  17. </div>
  18. </header>
  19. <div id="body">
  20. <section class="featured">
  21. <div class="content-wrapper">
  22. <h2>Introduction</h2>
  23. <p>
  24. Provide a general description of your APIs here.
  25. </p>
  26. </div>
  27. </section>
  28. <section class="content-wrapper main-content clear-fix">
  29. @foreach (var group in apiGroups)
  30. {
  31. @Html.DisplayFor(m => group, "ApiGroup")
  32. }
  33. </section>
  34. </div>
  35. @section Scripts {
  36. <link type="text/css" href="~/Areas/HelpPage/HelpPage.css" rel="stylesheet" />
  37. }