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.
49 lines
1.6 KiB
49 lines
1.6 KiB
7 months ago
|
@using System.Collections.Generic
|
||
|
@using System.Collections.ObjectModel
|
||
|
@using System.Web.Http.Description
|
||
|
@using System.Threading
|
||
|
@using WebAPI.Areas.HelpPage.ModelDescriptions
|
||
|
@model IList<ParameterDescription>
|
||
|
|
||
|
@if (Model.Count > 0)
|
||
|
{
|
||
|
<table class="help-page-table">
|
||
|
<thead>
|
||
|
<tr><th>Name</th><th>Description</th><th>Type</th><th>Additional information</th></tr>
|
||
|
</thead>
|
||
|
<tbody>
|
||
|
@foreach (ParameterDescription parameter in Model)
|
||
|
{
|
||
|
ModelDescription modelDescription = parameter.TypeDescription;
|
||
|
<tr>
|
||
|
<td class="parameter-name">@parameter.Name</td>
|
||
|
<td class="parameter-documentation">
|
||
|
<p>@parameter.Documentation</p>
|
||
|
</td>
|
||
|
<td class="parameter-type">
|
||
|
@Html.DisplayFor(m => modelDescription.ModelType, "ModelDescriptionLink", new { modelDescription = modelDescription })
|
||
|
</td>
|
||
|
<td class="parameter-annotations">
|
||
|
@if (parameter.Annotations.Count > 0)
|
||
|
{
|
||
|
foreach (var annotation in parameter.Annotations)
|
||
|
{
|
||
|
<p>@annotation.Documentation</p>
|
||
|
}
|
||
|
}
|
||
|
else
|
||
|
{
|
||
|
<p>None.</p>
|
||
|
}
|
||
|
</td>
|
||
|
</tr>
|
||
|
}
|
||
|
</tbody>
|
||
|
</table>
|
||
|
}
|
||
|
else
|
||
|
{
|
||
|
<p>None.</p>
|
||
|
}
|
||
|
|