refactorrr

This commit is contained in:
2024-09-23 22:13:11 +03:00
parent abfa75247d
commit e8fd8523aa
14 changed files with 47 additions and 15 deletions

View File

@@ -0,0 +1,18 @@
using System.ComponentModel.DataAnnotations;
namespace BlazorWebAssemblyVisaApiClient.Validation.Applicants.Models
{
public enum MaritalStatusModel
{
Other = 0,
Married = 1,
Unmarried = 2,
Separated = 3,
[Display(Name = "Widow or widower")]
WidowOrWidower = 4
}
}

View File

@@ -45,7 +45,7 @@ public class RegisterApplicantRequestModel
[Required(AllowEmptyStrings = true)]
[JsonConverter(typeof(StringEnumConverter))]
public MaritalStatus MaritalStatus { get; set; }
public MaritalStatusModel MaritalStatus { get; set; }
[Required]
[ValidateComplexType]
@@ -64,4 +64,4 @@ public class RegisterApplicantRequestModel
public PlaceOfWorkModel PlaceOfWork { get; set; } = new();
public bool IsNonResident { get; set; }
}
}