Reading from database
This commit is contained in:
@ -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>
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user