@page @using Microsoft.AspNetCore.Http @using bahnplan.web.database @using System.Linq @model IndexModel @{ ViewData["Title"] = "Home"; }
Please log in to see your personal plan.
} else {Here are your planned trips.
Date | Origin | Via | Destination | Actions | Danger zone |
---|---|---|---|---|---|
@Html.Raw(dates) | @Html.Raw(legs.First().DepStation.PadRight(30, ' ').Substring(0, 30).Replace(" ", " ")) | @((from index in from leg in legs where leg.TrainType == "placeholder" select legs.IndexOf(leg) select legs[index - 1].ArrStation).ToList().DefaultIfEmpty("-").Aggregate((s1, s2) => $"{s1}, {s2}")) | @Html.Raw(legs.Last().ArrStation.PadRight(30, ' ').Substring(0, 30).Replace(" ", " ")) | View | Delete Trip |