Added models for presentation layer with data annotations
This commit is contained in:
		| @@ -0,0 +1,19 @@ | ||||
| using System.ComponentModel.DataAnnotations; | ||||
| using Domains; | ||||
|  | ||||
| namespace ApplicationLayer.Services.Applicants.Models; | ||||
|  | ||||
| /// Model of name for presentation layer | ||||
| public class NameModel | ||||
| { | ||||
|     [Required] | ||||
|     [MaxLength(ConfigurationConstraints.NameLength)] | ||||
|     public string FirstName { get; set; } = null!; | ||||
|  | ||||
|     [Required] | ||||
|     [MaxLength(ConfigurationConstraints.NameLength)] | ||||
|     public string Surname { get; set; } = null!; | ||||
|  | ||||
|     [MaxLength(ConfigurationConstraints.NameLength)] | ||||
|     public string? Patronymic { get; set; } | ||||
| } | ||||
		Reference in New Issue
	
	Block a user