Вытащил солюшен на уровень выше, чтобы прощё было дотнетить
	
		
			
	
		
	
	
		
	
		
			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:
		
							
								
								
									
										18
									
								
								Infrastructure/Automapper/Profiles/UserProfile.cs
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										18
									
								
								Infrastructure/Automapper/Profiles/UserProfile.cs
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,18 @@ | ||||
| using ApplicationLayer.Services.AuthServices.Common; | ||||
| using ApplicationLayer.Services.Users.Models; | ||||
| using AutoMapper; | ||||
| using Domains.Users; | ||||
|  | ||||
| namespace Infrastructure.Automapper.Profiles; | ||||
|  | ||||
| public class UserProfile : Profile | ||||
| { | ||||
|     public UserProfile() | ||||
|     { | ||||
|         CreateMap<AuthData, User>(MemberList.Destination) | ||||
|             .ForMember(u => u.Role, | ||||
|                 opts => opts.Ignore()); | ||||
|  | ||||
|         CreateMap<User, UserModel>(MemberList.Destination); | ||||
|     } | ||||
| } | ||||
		Reference in New Issue
	
	Block a user