So, I'm displaying a table from my database to my view.
@model IEnumerable<test1.Models.Malfunction>
@{
ViewBag.Title = "Malfunctions";
}
<h2>Malfunctions</h2>
<table id="customers" class="table table-bordered table-hover">
<thead>
<tr>
<th>ID</th>
<th>Description</th>
<th>Date Reported</th>
<th>Customer</th>
<th>Movie</th>
</tr>
</thead>
<tbody>
@foreach (var malfunction in Model)
{
<tr>
<td>@malfunction.Id</td>
<td>@malfunction.ReportDescription</td>
<td>@malfunction.DateReported</td>
<td>@malfunction.Customer</td>
<td>@malfunction.Movie</td>
</tr>
}
</tbody>
</table>
<td>@malfunction.ReportDescription</td>
<td>@malfunction.DateReported</td>