@page
@model trainav.web.Pages.GenIcs
@{
    Layout = null;
    Response.ContentType = "text/calendar";
    Response.Headers.Add("content-disposition", $@"attachment;filename=""trip-{Model.Legs.First().DepTime.Split("T")[0]}.ics""");
}
@Html.Raw(Model.IcsOutput)