28 lines
802 B
C#
28 lines
802 B
C#
using AutoMapper;
|
|
using back.Entities;
|
|
using back.Entities.DTOs.Request;
|
|
using Microsoft.EntityFrameworkCore.Metadata.Internal;
|
|
|
|
namespace back.Application.Mappers
|
|
{
|
|
public class MappingProfile : Profile
|
|
{
|
|
public MappingProfile()
|
|
{
|
|
#region Mappings
|
|
CreateMap<Casa, CasaRequestDto>();
|
|
CreateMap<CasaRequestDto, Casa>();
|
|
|
|
CreateMap<Casa, CasaWitDirecctionRequestDto>();
|
|
CreateMap<CasaWitDirecctionRequestDto, Casa>();
|
|
|
|
CreateMap<Persona, PersonaRequestDto>();
|
|
CreateMap<PersonaRequestDto, Persona>();
|
|
|
|
CreateMap<Direccion, DireccionRequestDto>();
|
|
CreateMap<DireccionRequestDto, Direccion>();
|
|
#endregion Mappings
|
|
}
|
|
}
|
|
}
|