Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @model IEnumerable<tussentijdsetoets.ViewModels.MovieVM>
- @foreach (var movie in Model)
- {
- <img src="~/@movie.Image" alt="image">
- <h1>@movie.Title</h1>
- <p>(@movie.Year)</p>
- <p>@movie.Description</p>
- <h2>The Director</h2>
- <p>@movie.Director</p>
- <h2>Actors</h2>
- @foreach (var actor in @movie.Actors)
- {
- <p>@actor.Name</p>
- }
- <h2>How much is this rated?</h2>
- <p>@movie.Stars</p>
- <hr />
- }
- <h3>@ViewData["msg"]</h3>
Add Comment
Please, Sign In to add comment