file-scoped namespaces
This commit is contained in:
		| @@ -3,12 +3,12 @@ using ApplicationLayer.Services.AuthServices.Requests; | ||||
| using AutoMapper; | ||||
| using Domains.ApplicantDomain; | ||||
|  | ||||
| namespace Infrastructure.Automapper.Profiles | ||||
| namespace Infrastructure.Automapper.Profiles; | ||||
|  | ||||
| public class ApplicantProfile : Profile | ||||
| { | ||||
|     public class ApplicantProfile : Profile | ||||
|     public ApplicantProfile() | ||||
|     { | ||||
|         public ApplicantProfile() | ||||
|         { | ||||
|             CreateMap<Applicant, ApplicantModel>(MemberList.Destination); | ||||
|  | ||||
|             CreateMap<RegisterApplicantRequest, Applicant>(MemberList.Destination) | ||||
| @@ -16,5 +16,4 @@ namespace Infrastructure.Automapper.Profiles | ||||
|                 .ForMember(a => a.Name, | ||||
|                     opts => opts.MapFrom(r => r.ApplicantName)); | ||||
|         } | ||||
|     } | ||||
| } | ||||
| } | ||||
| @@ -2,15 +2,14 @@ | ||||
| using AutoMapper; | ||||
| using Domains.ApplicantDomain; | ||||
|  | ||||
| namespace Infrastructure.Automapper.Profiles | ||||
| namespace Infrastructure.Automapper.Profiles; | ||||
|  | ||||
| public class PlaceOfWorkProfile : Profile | ||||
| { | ||||
|     public class PlaceOfWorkProfile : Profile | ||||
|     public PlaceOfWorkProfile() | ||||
|     { | ||||
|         public PlaceOfWorkProfile() | ||||
|         { | ||||
|             CreateMap<PlaceOfWorkModel, PlaceOfWork>(MemberList.Destination) | ||||
|                 .ForMember(p => p.Id, | ||||
|                     opts => opts.UseDestinationValue()); | ||||
|         } | ||||
|     } | ||||
| } | ||||
| } | ||||
| @@ -2,15 +2,14 @@ | ||||
| using AutoMapper; | ||||
| using Domains.Users; | ||||
|  | ||||
| namespace Infrastructure.Automapper.Profiles | ||||
| namespace Infrastructure.Automapper.Profiles; | ||||
|  | ||||
| public class UserProfile : Profile | ||||
| { | ||||
|     public class UserProfile : Profile | ||||
|     public UserProfile() | ||||
|     { | ||||
|         public UserProfile() | ||||
|         { | ||||
|             CreateMap<AuthData, User>(MemberList.Destination) | ||||
|                 .ForMember(u => u.Role, | ||||
|                     opts => opts.Ignore()); | ||||
|         } | ||||
|     } | ||||
| } | ||||
| } | ||||
| @@ -3,12 +3,12 @@ using ApplicationLayer.Services.VisaApplications.Requests; | ||||
| using AutoMapper; | ||||
| using Domains.VisaApplicationDomain; | ||||
|  | ||||
| namespace Infrastructure.Automapper.Profiles | ||||
| namespace Infrastructure.Automapper.Profiles; | ||||
|  | ||||
| public class VisaApplicationProfile : Profile | ||||
| { | ||||
|     public class VisaApplicationProfile : Profile | ||||
|     public VisaApplicationProfile() | ||||
|     { | ||||
|         public VisaApplicationProfile() | ||||
|         { | ||||
|             CreateMap<VisaApplication, VisaApplicationModelForApplicant>(MemberList.Destination); | ||||
|  | ||||
|             CreateMap<VisaApplication, VisaApplicationModelForAuthority>(MemberList.Destination) | ||||
| @@ -21,5 +21,4 @@ namespace Infrastructure.Automapper.Profiles | ||||
|                 .ForMember(va => va.ApplicantId, | ||||
|                 opts => opts.Ignore()); | ||||
|         } | ||||
|     } | ||||
| } | ||||
| } | ||||
		Reference in New Issue
	
	Block a user