@model Vidly.ViewModels.CustomersViewModel
@{
ViewBag.Title = "Customers";
Layout = "~/Views/Shared/_Layout.cshtml";
}
Customers
@if (Model.Customers.Count == 0)
{
No one has rented this movie before.
}
else
{
@foreach (var customer in Model.Customers)
{
@*- @customer.Name
*@
- @Html.ActionLink(@customer.Name, "Details", "Customers", new { id = @customer.Id },null)
}
}