reactredux/webapi/WeatherForecast/Models/PageSections/CheckoutSummarySectionModel.cs

21 lines
619 B
C#

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