Footer
Name | Movie Genre | Released |
---|---|---|
Star Wars | Sci-Fi | 1997 |
Reservoir Dogs | Thriller | 1992 |
Airplane! | Slapstick | 1980 |
Terminator | Action | 1984 |
Terminator 2: Judgement Day | Action | 1991 |
Wonder Woman 1984 | Action | 2020 |
Close Encounters of the Third Kind | Sci-Fi | 1997 |
Rocky | Action | |
Brave Heart | Action | |
Movie with <b>bold</b> | Test | |
The Godfather | Mob | 1972 |
Citizen Kane | Drama | 1941 |
The Shawshank Redemption | Drama | 1994 |
Pulp Fiction | Action | 1994 |
Casablanca | Drama | 1942 |
2001: A Space Odyssey | Sci-Fi | 1968 |
Average of all Released Years | 1982 |
@(await Html
.SimpleGrid(Model)
.AddColumnFor(movie => movie.Name)
.AddColumnFor(movie => movie.Genre)
.AddColumnFor(movie => movie.Released)
.Footer(
$"<tr style='font-weight: bold'>" +
$"<td colspan='2'>Average of all Released Years</td>" +
$"<td>{(int)Model.Average(movie => movie.Released)}</td>" +
"</tr>")
.RenderAsync())