Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @using StudentCatalog.Models
- @model IEnumerable<StudentCatalog.Models.Student>
- @{
- ViewBag.Title = "Index";
- }
- <h2>Index</h2>
- <p>
- @Html.ActionLink("Create New", "Create")
- </p>
- <div class="col-md-3 hidden-xs">LALALA</div>
- <div class="col-md-9">
- @foreach (Student item in Model)
- {
- <div class="col-md-3">
- @Html
- @Html.DisplayFor(modelItem => item.Firstname)
- @Html.DisplayFor(modelItem => item.Lastname)
- @Html.DisplayFor(modelItem => item.Email)
- @Html.DisplayFor(modelItem => item.MobilePhone)
- @Html.ActionLink("Edit", "Edit", new { id = item.StudentId })
- @Html.ActionLink("Details", "Details", new { id = item.StudentId })
- @Html.ActionLink("Delete", "Delete", new { id = item.StudentId })
- </div>
- }
- </div>
- <table class="table">
- <tr>
- <th>
- @Html.DisplayNameFor(model => model.Firstname)
- </th>
- <th>
- @Html.DisplayNameFor(model => model.Lastname)
- </th>
- <th>
- @Html.DisplayNameFor(model => model.Email)
- </th>
- <th>
- @Html.DisplayNameFor(model => model.MobilePhone)
- </th>
- <th></th>
- </tr>
- </table>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement