using Core.DomainObjects.PageSections; using WeatherForecast.Models.Abstractions; namespace WeatherForecast.Models.PageSections { public class SummarySectionModel : PageSectionModelBase { public string Total { get; set; } public FormItemModel PromoCode { get; set; } public FormItemModel Submit { get; set; } public SummarySectionModel(SummarySection summarySection) : base(summarySection) { Total = summarySection.Total; PromoCode = new FormItemModel(summarySection.PromoCode); Submit = new FormItemModel(summarySection.Submit); } } }