add mapping profile to convert CreateEnvelopeCommand to Envelope

This commit is contained in:
tekh 2025-09-01 17:30:38 +02:00
parent d48514bbad
commit ddb2439b29

View File

@ -1,5 +1,6 @@
using AutoMapper;
using EnvelopeGenerator.Application.EnvelopeReceivers.Commands;
using EnvelopeGenerator.Application.Envelopes.Commands;
using EnvelopeGenerator.Domain.Entities;
namespace EnvelopeGenerator.Application.Envelopes;
@ -15,5 +16,6 @@ public class MappingProfile : Profile
public MappingProfile()
{
CreateMap<Envelope, CreateEnvelopeReceiverResponse>();
CreateMap<CreateEnvelopeCommand, Envelope>();
}
}