@page "/sitemap.xml" @using Microsoft.AspNetCore.Http @{ var pages = new List { new {Url = "https://mydarlingunderwear.ru/", LastUpdated = DateTime.Today} }; Layout = null; Response.ContentType = "text/xml"; await Response.WriteAsync(""); } @foreach (var p in pages) { @p.Url @p.LastUpdated.ToString("yyyy-MM-dd") }