Skip to content
Fetching contributors…
Cannot retrieve contributors at this time
10 lines (8 sloc) 280 Bytes
@model List<Rockstar>
<div id="sidebar">
<h4>Razor Partials with Model</h4>
@foreach (var rockstar in Model) {
<li>@rockstar.FirstName - @rockstar.LastName (<a href="?Age=@rockstar.Age">@rockstar.Age</a>)</li>
}
</div>
<!--view:RazorPartialModel.cshtml-->
Something went wrong with that request. Please try again.