Added models for presentation layer with data annotations
This commit is contained in:
		| @@ -0,0 +1,21 @@ | ||||
| using System.ComponentModel.DataAnnotations; | ||||
| using Domains; | ||||
|  | ||||
| namespace ApplicationLayer.Services.VisaApplications.Models; | ||||
|  | ||||
| /// Model of past visit for presentation layer | ||||
| public class PastVisitModel | ||||
| { | ||||
|     /// First day of past visit | ||||
|     [Required] | ||||
|     public DateTime StartDate { get; set; } | ||||
|  | ||||
|     /// Last day of past visit | ||||
|     [Required] | ||||
|     public DateTime EndDate { get; set; } | ||||
|  | ||||
|     /// Destination country of past visit | ||||
|     [Required] | ||||
|     [MaxLength(ConfigurationConstraints.CountryNameLength)] | ||||
|     public string DestinationCountry { get; set; } = null!; | ||||
| } | ||||
		Reference in New Issue
	
	Block a user