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

Friends

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

@foreach (var item in Model) { }
@Html.DisplayNameFor(model => model.Name) @Html.DisplayNameFor(model => model.PhoneNumber)
@Html.DisplayFor(modelItem => item.Name) @Html.DisplayFor(modelItem => item.PhoneNumber) @Html.ActionLink("Edit", "Edit", new { id=item.FriendId }) | @Html.ActionLink("Delete", "Delete", new { id=item.FriendId })