using DomainObjects; using DomainObjects.PageSections; using WeatherForecast.Models.Abstractions; namespace WeatherForecast.Models.Content.Responses.PageSections { /// /// /// public class FeatureModel { /// /// /// public string Icon { get; set; } /// /// /// public string Title { get; set; } /// /// /// public string Text { get; set; } /// /// /// /// public FeatureModel(Feature feature) { Icon = feature.Icon; Title = feature.Title; Text = feature.Text; } } /// /// /// public class FeaturesSectionModel : PageSectionModelBase { /// /// /// public List Items { get; set; } /// /// /// /// public FeaturesSectionModel(FeaturesSection featuresSection) : base(featuresSection) { Items = featuresSection.Items.Select(x => new FeatureModel(x)).ToList(); } } }