Register page
This commit is contained in:
		| @@ -0,0 +1,18 @@ | ||||
| using AutoMapper; | ||||
| using BlazorWebAssemblyVisaApiClient.FluentValidation.Applicants.Models; | ||||
| using VisaApiClient; | ||||
|  | ||||
| namespace BlazorWebAssemblyVisaApiClient.Infrastructure.AutoMapper.Profiles | ||||
| { | ||||
|     public class RegisterApplicantRequestProfile : Profile | ||||
|     { | ||||
|         public RegisterApplicantRequestProfile() | ||||
|         { | ||||
|             CreateMap<RegisterApplicantRequestModel, RegisterApplicantRequest>(MemberList.Destination); | ||||
|  | ||||
|             CreateMap<RegisterRequestModel, RegisterRequest>(MemberList.Destination); | ||||
|  | ||||
|             CreateMap<FluentValidation.Applicants.Models.PlaceOfWorkModel, VisaApiClient.PlaceOfWorkModel>(MemberList.Destination); | ||||
|         } | ||||
|     } | ||||
| } | ||||
| @@ -0,0 +1,7 @@ | ||||
| namespace BlazorWebAssemblyVisaApiClient.Infrastructure.Services | ||||
| { | ||||
|     public class DateTimeProvider : IDateTimeProvider | ||||
|     { | ||||
|         public DateTime Now() => DateTime.Now; | ||||
|     } | ||||
| } | ||||
| @@ -0,0 +1,7 @@ | ||||
| namespace BlazorWebAssemblyVisaApiClient.Infrastructure.Services | ||||
| { | ||||
|     public interface IDateTimeProvider | ||||
|     { | ||||
|         DateTime Now(); | ||||
|     } | ||||
| } | ||||
		Reference in New Issue
	
	Block a user