Вытащил солюшен на уровень выше, чтобы прощё было дотнетить
	
		
			
	
		
	
	
		
	
		
			Some checks failed
		
		
	
	
		
			
				
	
				continuous-integration/drone/push Build is failing
				
			
		
		
	
	
				
					
				
			
		
			Some checks failed
		
		
	
	continuous-integration/drone/push Build is failing
				
			This commit is contained in:
		
							
								
								
									
										21
									
								
								ApplicationLayer/Services/Applicants/Models/NameModel.cs
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										21
									
								
								ApplicationLayer/Services/Applicants/Models/NameModel.cs
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,21 @@ | ||||
| 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; } | ||||
|  | ||||
|     public override string ToString() => $"{FirstName} {Surname} {Patronymic}".TrimEnd(); | ||||
| } | ||||
		Reference in New Issue
	
	Block a user