@page "/feed.yml" @using Microsoft.AspNetCore.Http @using Microsoft.EntityFrameworkCore @inject MyDarling.Models.DataContext context @{ var p = new { Url = "https://mydarlingunderwear.ru/", LastUpdated = DateTime.Today }; Response.ContentType = "text/xml"; var products = context.Products .Include(b => b.Figures) .Where(b => b.Price != 0 && b.Figures.Count > 0); await Response.WriteAsync(""); var updateDate = p.LastUpdated.ToString("yyyy-MM-dd"); } My Darling Underwear Екатерина Мануйлова @p.Url Нижнее бельё @foreach (var product in products) { var figureUrl = $"{@p.Url}Content/{@product.Id}/{@product.Figures[0].Id}.jpg"; @p.Url#@product.Id-1 @product.Price RUR 1 @product.Name @figureUrl }