using Core.DomainObjects.PageSections;
using WeatherForecast.Models.Abstractions;

namespace WeatherForecast.Models.PageSections {

  /// <summary>
  /// 
  /// </summary>
  public class FeaturesSectionModel : PageSectionModelBase<FeaturesSection> {

    /// <summary>
    /// 
    /// </summary>
    public List<FeatureModel> Items { get; set; }

    /// <summary>
    /// 
    /// </summary>
    /// <param name="featuresSection"></param>
    public FeaturesSectionModel(FeaturesSection featuresSection) : base(featuresSection) {
      Items = featuresSection.Items.Select(x => new FeatureModel(x)).ToList();
    }
  }
}
