8 lines
263 B
Plaintext
8 lines
263 B
Plaintext
|
@page
|
||
|
@model bahnplan.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)
|