Files
schengen-visa/Infrastructure/Automapper/Profiles/PlaceOfWorkProfile.cs
2025-10-05 14:32:06 +03:00

19 lines
485 B
C#

using ApplicationLayer.Services.Applicants.Models;
using AutoMapper;
using Domains.ApplicantDomain;
namespace Infrastructure.Automapper.Profiles;
public class PlaceOfWorkProfile : Profile
{
public PlaceOfWorkProfile()
{
CreateMap<PlaceOfWorkModel, PlaceOfWork>(MemberList.Destination)
.ForMember(p => p.Id,
opts => opts.UseDestinationValue())
.ReverseMap();
CreateMap<AddressModel, Address>().ReverseMap();
}
}