@model IEnumerable @{ ViewBag.Title = "PetsClass"; }

PetsClass

@Html.ActionLink("Create New", "Create")

@foreach (var item in Model) { }
@Html.DisplayNameFor(model => model.name) @Html.DisplayNameFor(model => model.color) @Html.DisplayNameFor(model => model.description) @Html.DisplayNameFor(model => model.dateofbirthday) @Html.DisplayNameFor(model => model.usersid) @Html.DisplayNameFor(model => model.typeofpetsid)
@Html.DisplayFor(modelItem => item.name) @Html.DisplayFor(modelItem => item.color) @Html.DisplayFor(modelItem => item.description) @Html.DisplayFor(modelItem => item.dateofbirthday) @Html.DisplayFor(modelItem => item.usersid) @Html.DisplayFor(modelItem => item.typeofpetsid) @Html.ActionLink("Edit", "Edit", new { id = item.id }) | @Html.ActionLink("Details", "Details", new { id = item.id }) | @Html.ActionLink("Delete", "Delete", new { id = item.id })