reactredux/webapi/WeatherForecast/Models/Pages/ShopCheckoutPageModel.cs

28 lines
1.2 KiB
C#

using Core.DomainObjects.Pages;
using WeatherForecast.Models.Abstractions;
using WeatherForecast.Models.PageSections;
namespace WeatherForecast.Models.Pages {
public class ShopCheckoutPageModel : PageModelBase {
public BillingAddressSectionModel BillingAddressSection { get; set; }
public ShippingAddressSectionModel ShippingAddressSection { get; set; }
public SettingsSectionModel SettingsSection { get; set; }
public SummarySectionModel SummarySection { get; set; }
public PaymentSectionModel PaymentSection { get; set; }
public FormItemModel Submit { get; set; }
public ShopCheckoutPageModel(ShopCheckoutPage shopCheckoutPage) : base(shopCheckoutPage.Header, shopCheckoutPage.TitleSection) {
BillingAddressSection = new BillingAddressSectionModel(shopCheckoutPage.BillingAddressSection);
ShippingAddressSection = new ShippingAddressSectionModel(shopCheckoutPage.ShippingAddressSection);
SettingsSection = new SettingsSectionModel(shopCheckoutPage.SettingsSection);
SummarySection = new SummarySectionModel(shopCheckoutPage.SummarySection);
PaymentSection = new PaymentSectionModel(shopCheckoutPage.PaymentSection);
Submit = new FormItemModel(shopCheckoutPage.Submit);
}
}
}