public IActionResult P() { if (tilda == null) { tilda = HttpContext.Request.PathBase; } ContentResult cr = new ContentResult() { ContentType = "text/html" }; XElement html = new XElement("html", new XElement("head", new XElement("meta", new XAttribute("charset", "utf-8")), new XElement("link", new XAttribute("src", tilda + "/Styles.css")), null), new XElement("body", new XElement("img", new XAttribute("src", tilda + "/logo2.gif")), new XElement("img", new XAttribute("src", tilda + "/logo1.jpg")), new XElement("img", new XAttribute("src", tilda + "/tmp_foto.jpg")), new XElement("img", new XAttribute("src", tilda + "/logo4.gif")), new XElement("img", new XAttribute("src", tilda + "/tmp_foto.jpg")), new XElement("div", new XElement("h1", $"Привет: {tilda}!"), null))); html = Pager.ConstructPage(HttpContext); cr.Content = "<!DOCTYPE html>\n" + html.ToString(); // (SaveOptions.DisableFormatting); return(cr); }