Register page

This commit is contained in:
2024-09-01 17:47:49 +03:00
parent 743531e6d4
commit 65876be551
32 changed files with 935 additions and 146 deletions

View File

@@ -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);
}
}
}

View File

@@ -0,0 +1,7 @@
namespace BlazorWebAssemblyVisaApiClient.Infrastructure.Services
{
public class DateTimeProvider : IDateTimeProvider
{
public DateTime Now() => DateTime.Now;
}
}

View File

@@ -0,0 +1,7 @@
namespace BlazorWebAssemblyVisaApiClient.Infrastructure.Services
{
public interface IDateTimeProvider
{
DateTime Now();
}
}