Reading from database

This commit is contained in:
2019-01-19 17:08:56 +01:00
parent 25dc803cfd
commit 19fc2475fa
14 changed files with 607 additions and 13 deletions

View File

@ -12,12 +12,22 @@
}
else
{
<ul>
<table class="table table-bordered table-hover">
<thead>
<tr>
<th>Customer</th>
<th >Discount Rate</th>
</tr>
</thead>
<tbody>
@foreach (var customer in Model.Customers)
{
@*<li>@customer.Name</li>*@
<li>@Html.ActionLink(@customer.Name, "Details", "Customers", new { id = @customer.Id },null)</li>
<tr>
<td>@Html.ActionLink(@customer.Name, "Details", "Customers", new { id = @customer.Id }, null)</td>
<td>@customer.MembershipType.DiscountRate%</td>
</tr>
}
</ul>
</tbody>
</table>
}