您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

Index.cshtml 1.1KB

1234567891011121314151617181920212223242526272829303132333435363738
  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. <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>