8 lines
262 B
Plaintext
8 lines
262 B
Plaintext
@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) |