feat(MappingProfile): UUID-Generierung beim Zuordnen von CreateEnvelopeCommand zu Envelope hinzufügen
This commit is contained in:
parent
ddb2439b29
commit
a87a524271
@ -16,6 +16,7 @@ public class MappingProfile : Profile
|
|||||||
public MappingProfile()
|
public MappingProfile()
|
||||||
{
|
{
|
||||||
CreateMap<Envelope, CreateEnvelopeReceiverResponse>();
|
CreateMap<Envelope, CreateEnvelopeReceiverResponse>();
|
||||||
CreateMap<CreateEnvelopeCommand, Envelope>();
|
CreateMap<CreateEnvelopeCommand, Envelope>()
|
||||||
|
.ForMember(dest => dest.Uuid, opt => opt.MapFrom(_ => Guid.NewGuid().ToString()));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user