Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @using ADSProjectLab.Utilities
- @model IEnumerable<ADSProjectLab.Models.Estudiante>
- @{
- ViewBag.Title = "Estudiantes";
- Layout = "~/Views/Shared/_Layout.cshtml";
- }
- <h2>Listado de estudiantes</h2>
- <p>
- @Html.ActionLink("Crear", "Form", new { _operacion = Operacion.Insertar })
- </p>
- <table class="table">
- <tr>
- <th>
- @Html.DisplayNameFor(model => model.Codigo)
- </th>
- <th>
- @Html.DisplayNameFor(model => model.Email)
- </th>
- <th>
- @Html.DisplayNameFor(model => model.Nombres)
- </th>
- <th>
- @Html.DisplayNameFor(model => model.Apellidos)
- </th>
- <th></th>
- </tr>
- @foreach (var item in Model) {
- <tr>
- <td>
- @Html.DisplayFor(modelItem => item.Codigo)
- </td>
- <td>
- @Html.DisplayFor(modelItem => item.Email)
- </td>
- <td>
- @Html.DisplayFor(modelItem => item.Nombres)
- </td>
- <td>
- @Html.DisplayFor(modelItem => item.Apellidos)
- </td>
- <td>
- @Html.ActionLink("Editar", "Form", new { id=item.Id, _operacion = Operacion.Modificar }) |
- @Html.ActionLink("Ver", "Form", new { id=item.Id, _operacion = Operacion.Ver }) |
- @Html.ActionLink("Eliminar", "Delete", new { id=item.Id, _operacion = Operacion.Eliminar })
- </td>
- </tr>
- }
- </table>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement