Added models for presentation layer with data annotations
This commit is contained in:
		| @@ -2,48 +2,49 @@ | ||||
|  | ||||
| namespace ApplicationLayer.Services.Applicants.Models; | ||||
|  | ||||
| /// Model of <see cref="Applicant"/> | ||||
| /// Model of | ||||
| /// <see cref="Applicant" /> | ||||
| public class ApplicantModel | ||||
| { | ||||
|     /// <inheritdoc cref="Applicant.Name"/> | ||||
|     /// <inheritdoc cref="Applicant.Name" /> | ||||
|     public Name Name { get; set; } = null!; | ||||
|  | ||||
|     /// <inheritdoc cref="Applicant.Passport"/> | ||||
|     /// <inheritdoc cref="Applicant.Passport" /> | ||||
|     public Passport Passport { get; set; } = null!; | ||||
|  | ||||
|     /// <inheritdoc cref="Applicant.BirthDate"/> | ||||
|     /// <inheritdoc cref="Applicant.BirthDate" /> | ||||
|     public DateTime BirthDate { get; set; } | ||||
|  | ||||
|     /// <inheritdoc cref="Applicant.CountryOfBirth"/> | ||||
|     /// <inheritdoc cref="Applicant.CountryOfBirth" /> | ||||
|     public string CountryOfBirth { get; set; } = null!; | ||||
|  | ||||
|     /// <inheritdoc cref="Applicant.CityOfBirth"/> | ||||
|     /// <inheritdoc cref="Applicant.CityOfBirth" /> | ||||
|     public string CityOfBirth { get; set; } = null!; | ||||
|  | ||||
|     /// <inheritdoc cref="Applicant.Citizenship"/> | ||||
|     /// <inheritdoc cref="Applicant.Citizenship" /> | ||||
|     public string Citizenship { get; set; } = null!; | ||||
|  | ||||
|     /// <inheritdoc cref="Applicant.CitizenshipByBirth"/> | ||||
|     /// <inheritdoc cref="Applicant.CitizenshipByBirth" /> | ||||
|     public string CitizenshipByBirth { get; set; } = null!; | ||||
|  | ||||
|     /// <inheritdoc cref="Applicant.Gender"/> | ||||
|     /// <inheritdoc cref="Applicant.Gender" /> | ||||
|     public Gender Gender { get; set; } | ||||
|  | ||||
|     /// <inheritdoc cref="Applicant.MaritalStatus"/> | ||||
|     /// <inheritdoc cref="Applicant.MaritalStatus" /> | ||||
|     public MaritalStatus MaritalStatus { get; set; } | ||||
|  | ||||
|     /// <inheritdoc cref="Applicant.FatherName"/> | ||||
|     /// <inheritdoc cref="Applicant.FatherName" /> | ||||
|     public Name FatherName { get; set; } = null!; | ||||
|  | ||||
|     /// <inheritdoc cref="Applicant.MotherName"/> | ||||
|     /// <inheritdoc cref="Applicant.MotherName" /> | ||||
|     public Name MotherName { get; set; } = null!; | ||||
|  | ||||
|     /// <inheritdoc cref="Applicant.JobTitle"/> | ||||
|     /// <inheritdoc cref="Applicant.JobTitle" /> | ||||
|     public string JobTitle { get; set; } = null!; | ||||
|  | ||||
|     /// <inheritdoc cref="Applicant.PlaceOfWork"/> | ||||
|     /// <inheritdoc cref="Applicant.PlaceOfWork" /> | ||||
|     public PlaceOfWork PlaceOfWork { get; set; } = null!; | ||||
|  | ||||
|     /// <inheritdoc cref="Applicant.IsNonResident"/> | ||||
|     /// <inheritdoc cref="Applicant.IsNonResident" /> | ||||
|     public bool IsNonResident { get; set; } | ||||
| } | ||||
| } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user