Files
Vidly2/Vidly/Views/Movies/Movies.cshtml

23 lines
471 B
Plaintext

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