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.

Parameters.cshtml 1.6KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. @using System.Collections.Generic
  2. @using System.Collections.ObjectModel
  3. @using System.Web.Http.Description
  4. @using System.Threading
  5. @using CacheControl_test.Areas.HelpPage.ModelDescriptions
  6. @model IList<ParameterDescription>
  7. @if (Model.Count > 0)
  8. {
  9. <table class="help-page-table">
  10. <thead>
  11. <tr><th>Name</th><th>Description</th><th>Type</th><th>Additional information</th></tr>
  12. </thead>
  13. <tbody>
  14. @foreach (ParameterDescription parameter in Model)
  15. {
  16. ModelDescription modelDescription = parameter.TypeDescription;
  17. <tr>
  18. <td class="parameter-name">@parameter.Name</td>
  19. <td class="parameter-documentation">
  20. <p>@parameter.Documentation</p>
  21. </td>
  22. <td class="parameter-type">
  23. @Html.DisplayFor(m => modelDescription.ModelType, "ModelDescriptionLink", new { modelDescription = modelDescription })
  24. </td>
  25. <td class="parameter-annotations">
  26. @if (parameter.Annotations.Count > 0)
  27. {
  28. foreach (var annotation in parameter.Annotations)
  29. {
  30. <p>@annotation.Documentation</p>
  31. }
  32. }
  33. else
  34. {
  35. <p>None.</p>
  36. }
  37. </td>
  38. </tr>
  39. }
  40. </tbody>
  41. </table>
  42. }
  43. else
  44. {
  45. <p>None.</p>
  46. }