Compiler Error Message: CS1513: } expected
event
is a reserve word in c#.. you could try @event
(well maybe not in razor syntax now that I think about it). But seriously rename your event
variable..
@foreach (var theEvent in Model.Events)
{
<li>
@theEvent.Title
</li>
}
C# Keywords