using Core.DomainObjects.PageSections; using WeatherForecast.Models.Abstractions; namespace WeatherForecast.Models.PageSections { public class TestimonialsSectionModel : PageSectionModelBase { public List Items { get; set; } public TestimonialsSectionModel(TestimonialsSection testimonialsSection) : base(testimonialsSection) { Items = testimonialsSection.Items.Select(x => new TestimonialModel(x)).ToList(); } } }