-
- @Html.DisplayFor(modelItem => item.Name)
- |
-
- @Html.DisplayFor(modelItem => item.Email)
- |
-
- @Html.ActionLink("Edit", "Edit", new { id=item.Id }) |
- @Html.ActionLink("Details", "Details", new { id=item.Id }) |
- @Html.ActionLink("Delete", "Delete", new { id=item.Id })
- |
-
-}
+ @foreach (var item in Model)
+ {
+
+
+ @Html.DisplayFor(modelItem => item.Name)
+ |
+
+ @Html.DisplayFor(modelItem => item.Email)
+ |
+
+ @Html.ActionLink("Edit", "Edit", new { id = item.Id }) |
+ @Html.ActionLink("Details", "Details", new { id = item.Id }) |
+ @Html.ActionLink("Delete", "Delete", new { id = item.Id })
+ |
+
+ }
diff --git a/Web.config b/Web.config
index d246aab1..8ce4f449 100644
--- a/Web.config
+++ b/Web.config
@@ -30,7 +30,7 @@