feat(MappingProfile): UUID-Generierung beim Zuordnen von CreateEnvelopeCommand zu Envelope hinzufügen

This commit is contained in:
tekh 2025-09-02 12:19:06 +02:00
parent ddb2439b29
commit a87a524271

View File

@ -16,6 +16,7 @@ public class MappingProfile : Profile
public MappingProfile()
{
CreateMap<Envelope, CreateEnvelopeReceiverResponse>();
CreateMap<CreateEnvelopeCommand, Envelope>();
CreateMap<CreateEnvelopeCommand, Envelope>()
.ForMember(dest => dest.Uuid, opt => opt.MapFrom(_ => Guid.NewGuid().ToString()));
}
}