show buses in a list
This commit is contained in:
parent
38238d29a1
commit
f99c2189e4
@ -5,9 +5,9 @@
|
||||
var busRoutes = Model.Routes.OrderBy(r => r.BusNumber).ToList();
|
||||
var hasDelays = busRoutes.Any();
|
||||
|
||||
var userBusRouteList = string.Join(", ", Model.User.Routes
|
||||
.Select(r => r.BusNumber)
|
||||
.OrderBy(r => r));
|
||||
var userBusRoutes = Model.User.Routes
|
||||
.OrderBy(r => r.BusNumber)
|
||||
.ToList();
|
||||
}
|
||||
|
||||
@if (hasDelays)
|
||||
@ -25,7 +25,12 @@ else
|
||||
</div>
|
||||
}
|
||||
|
||||
<strong>My Buses: @userBusRouteList</strong>
|
||||
<h4>My Buses</h4>
|
||||
|
||||
@foreach (var busRoute in userBusRoutes)
|
||||
{
|
||||
<div><strong>@busRoute.BusNumber - @busRoute.Label</strong></div>
|
||||
}
|
||||
|
||||
<ul id="route-list">
|
||||
@foreach (var busRoute in busRoutes)
|
||||
|
Loading…
x
Reference in New Issue
Block a user