-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.cshtml
39 lines (34 loc) · 878 Bytes
/
index.cshtml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
@model IEnumerable<AppMVC03.Models.VENDEDOR>
@{
ViewBag.Title = "Index";
}
<h2>Index</h2>
<p>
@Html.ActionLink("Create New", "Create")
</p>
<table class="table">
<tr>
<th>
@Html.DisplayNameFor(model => model.NumeroTelefo)
</th>
<th>
@Html.DisplayNameFor(model => model.Nombre)
</th>
<th></th>
</tr>
@foreach (var item in Model) {
<tr>
<td>
@Html.DisplayFor(modelItem => item.NumeroTelefo)
</td>
<td>
@Html.DisplayFor(modelItem => item.Nombre)
</td>
<td>
@Html.ActionLink("Edit", "Edit", new { id=item.CodVendedor }) |
@Html.ActionLink("Details", "Details", new { id=item.CodVendedor }) |
@Html.ActionLink("Delete", "Delete", new { id=item.CodVendedor })
</td>
</tr>
}
</table>