Вытащил солюшен на уровень выше, чтобы прощё было дотнетить
	
		
			
	
		
	
	
		
	
		
			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:
		
							
								
								
									
										22
									
								
								Infrastructure/Automapper/Profiles/ApplicantProfile.cs
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										22
									
								
								Infrastructure/Automapper/Profiles/ApplicantProfile.cs
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,22 @@ | ||||
| using ApplicationLayer.Services.Applicants.Models; | ||||
| using ApplicationLayer.Services.AuthServices.Requests; | ||||
| using AutoMapper; | ||||
| using Domains.ApplicantDomain; | ||||
|  | ||||
| namespace Infrastructure.Automapper.Profiles; | ||||
|  | ||||
| public class ApplicantProfile : Profile | ||||
| { | ||||
|     public ApplicantProfile() | ||||
|     { | ||||
|         CreateMap<Applicant, ApplicantModel>(MemberList.Destination).ReverseMap(); | ||||
|  | ||||
|         CreateMap<RegisterApplicantRequest, Applicant>(MemberList.Destination) | ||||
|             .ForMember(a => a.UserId, opts => opts.Ignore()) | ||||
|             .ForMember(a => a.Name, | ||||
|                 opts => opts.MapFrom(r => r.ApplicantName)); | ||||
|  | ||||
|         CreateMap<NameModel, Name>().ReverseMap(); | ||||
|         CreateMap<PassportModel, Passport>().ReverseMap(); | ||||
|     } | ||||
| } | ||||
		Reference in New Issue
	
	Block a user