past visas
This commit is contained in:
		| @@ -20,4 +20,6 @@ public static class ConfigurationConstraints | ||||
|     public const int ApplicantMinAge = 14; | ||||
|     public const int JobTitleLength = 50; | ||||
|     public const int MaxValidDays = 90; | ||||
|     public const int MaxPastVisas = 10; | ||||
|     public const int MaxPastVisits = 10; | ||||
| } | ||||
|   | ||||
| @@ -26,13 +26,11 @@ namespace BlazorWebAssemblyVisaApiClient.Validation.VisaApplications.Models | ||||
|         [Range(0, ConfigurationConstraints.MaxValidDays)] | ||||
|         public int ValidDaysRequested { get; set; } | ||||
|  | ||||
|         [ValidateComplexType] | ||||
|         public PastVisaModel[] PastVisas { get; set; } = default!; | ||||
|         [ValidateComplexType] public PastVisaModel[] PastVisas { get; set; } = default!; | ||||
|  | ||||
|         [ValidateComplexType] | ||||
|         public PermissionToDestCountryModel? PermissionToDestCountry { get; set; } = new(); | ||||
|  | ||||
|         [ValidateComplexType] | ||||
|         public PastVisitModel[] PastVisits { get; set; } = default!; | ||||
|         [ValidateComplexType] public PastVisitModel[] PastVisits { get; set; } = default!; | ||||
|     } | ||||
| } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user