纽威
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.

38 lines
1.1 KiB

  1. @using System.Web.Http
  2. @using System.Web.Http.Controllers
  3. @using System.Web.Http.Description
  4. @using System.Collections.ObjectModel
  5. @using ICSSoft.WebAPI.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. <link type="text/css" href="~/Areas/HelpPage/HelpPage.css" rel="stylesheet" />
  13. <header class="help-page">
  14. <div class="content-wrapper">
  15. <div class="float-left">
  16. <h1>@ViewBag.Title</h1>
  17. </div>
  18. </div>
  19. </header>
  20. <div id="body" class="help-page">
  21. <section class="featured">
  22. <div class="content-wrapper">
  23. <h2>Introduction</h2>
  24. <p>
  25. Provide a general description of your APIs here.
  26. </p>
  27. </div>
  28. </section>
  29. <section class="content-wrapper main-content clear-fix">
  30. @foreach (var group in apiGroups)
  31. {
  32. @Html.DisplayFor(m => group, "ApiGroup")
  33. }
  34. </section>
  35. </div>