44 lines
		
	
	
		
			1.1 KiB
		
	
	
	
		
			C#
		
	
	
	
	
	
			
		
		
	
	
			44 lines
		
	
	
		
			1.1 KiB
		
	
	
	
		
			C#
		
	
	
	
	
	
| using DomainObjects.PageSections;
 | |
| using WeatherForecast.Models.Abstractions;
 | |
| 
 | |
| namespace WeatherForecast.Models.Content.Responses.PageSections {
 | |
| 
 | |
|   /// <summary>
 | |
|   /// 
 | |
|   /// </summary>
 | |
|   public class PaymentSectionModel : PageSectionModelBase<PaymentSection> {
 | |
| 
 | |
|     /// <summary>
 | |
|     /// 
 | |
|     /// </summary>
 | |
|     public FormItemModel NameOnCard { get; set; }
 | |
| 
 | |
|     /// <summary>
 | |
|     /// 
 | |
|     /// </summary>
 | |
|     public FormItemModel CardNumber { get; set; }
 | |
| 
 | |
|     /// <summary>
 | |
|     /// 
 | |
|     /// </summary>
 | |
|     public FormItemModel Expiration { get; set; }
 | |
| 
 | |
|     /// <summary>
 | |
|     /// 
 | |
|     /// </summary>
 | |
|     public FormItemModel Cvv { get; set; }
 | |
| 
 | |
|     /// <summary>
 | |
|     /// 
 | |
|     /// </summary>
 | |
|     /// <param name="paymentSection"></param>
 | |
|     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);
 | |
|     }
 | |
| 
 | |
|   }
 | |
| }
 |