@model SummaryViewModel @{ ViewData["Title"] = "Home Page"; var busRoutes = Model.Routes.OrderBy(r => r.BusNumber).ToList(); var hasDelays = busRoutes.Any(); var userBusRoutes = Model.User.Routes .OrderBy(r => r.BusNumber) .ToList(); } @if (hasDelays) {

Uh oh

We have @busRoutes.Count delays
} else {

Good news!

No delays today!
}

My Buses

@foreach (var busRoute in userBusRoutes) {
@busRoute.BusNumber - @busRoute.Label
}