past visas

This commit is contained in:
2024-09-08 00:12:29 +03:00
parent c197a45f83
commit 142148368f
9 changed files with 154 additions and 33 deletions

View File

@@ -11,11 +11,10 @@ public class PastVisaModel
public DateTime IssueDate { get; set; }
/// Name of visa
[Required]
[MaxLength(ConfigurationConstraints.VisaNameLength)]
public string Name { get; set; } = null!;
/// Date when visa expires
[Required]
public DateTime ExpirationDate { get; set; }
}
}

View File

@@ -15,7 +15,6 @@ public class PastVisitModel
public DateTime EndDate { get; set; }
/// Destination country of past visit
[Required]
[MaxLength(ConfigurationConstraints.CountryNameLength)]
public string DestinationCountry { get; set; } = null!;
}
}

View File

@@ -12,6 +12,5 @@ public class PermissionToDestCountryModel
/// Issuing authority
[MaxLength(ConfigurationConstraints.IssuerNameLength)]
[Required]
public string Issuer { get; set; } = null!;
}