add mapping profile to convert CreateEnvelopeCommand to Envelope
This commit is contained in:
@@ -1,5 +1,6 @@
|
|||||||
using AutoMapper;
|
using AutoMapper;
|
||||||
using EnvelopeGenerator.Application.EnvelopeReceivers.Commands;
|
using EnvelopeGenerator.Application.EnvelopeReceivers.Commands;
|
||||||
|
using EnvelopeGenerator.Application.Envelopes.Commands;
|
||||||
using EnvelopeGenerator.Domain.Entities;
|
using EnvelopeGenerator.Domain.Entities;
|
||||||
|
|
||||||
namespace EnvelopeGenerator.Application.Envelopes;
|
namespace EnvelopeGenerator.Application.Envelopes;
|
||||||
@@ -15,5 +16,6 @@ public class MappingProfile : Profile
|
|||||||
public MappingProfile()
|
public MappingProfile()
|
||||||
{
|
{
|
||||||
CreateMap<Envelope, CreateEnvelopeReceiverResponse>();
|
CreateMap<Envelope, CreateEnvelopeReceiverResponse>();
|
||||||
|
CreateMap<CreateEnvelopeCommand, Envelope>();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user