21 lines
751 B
C#
21 lines
751 B
C#
using Core.DomainObjects.PageSections;
|
|
using WeatherForecast.Models.Abstractions;
|
|
|
|
namespace WeatherForecast.Models.PageSections {
|
|
public class PaymentSectionModel : PageSectionModelBase<PaymentSection> {
|
|
|
|
public FormItemModel NameOnCard { get; set; }
|
|
public FormItemModel CardNumber { get; set; }
|
|
public FormItemModel Expiration { get; set; }
|
|
public FormItemModel Cvv { get; set; }
|
|
|
|
public PaymentSectionModel(PaymentSection paymentSection) : base(paymentSection) {
|
|
NameOnCard = new FormItemModel(paymentSection.NameOnCard);
|
|
CardNumber = new FormItemModel(paymentSection.CardNumber);
|
|
Expiration = new FormItemModel(paymentSection.Expiration);
|
|
Cvv = new FormItemModel(paymentSection.Cvv);
|
|
}
|
|
|
|
}
|
|
}
|