feat(CreateHistoryCommand): add CreateHistoryCommandHandler with repository integration

- Extend CreateHistoryCommand to implement IRequest<long?>
- Introduce CreateHistoryCommandHandler to handle command via IRepository<EnvelopeHistory>
- Implement async creation and verification of EnvelopeHistory records
This commit is contained in:
2025-08-25 17:33:49 +02:00
parent 78100ef24f
commit f34770931f
2 changed files with 46 additions and 2 deletions

View File

@@ -1,4 +1,5 @@
using AutoMapper;
using EnvelopeGenerator.Application.Histories.Commands;
using EnvelopeGenerator.Application.Histories.Queries.Read;
using EnvelopeGenerator.Domain.Entities;
@@ -15,5 +16,6 @@ public class MappingProfile: Profile
public MappingProfile()
{
CreateMap<EnvelopeHistory, ReadHistoryResponse>();
CreateMap<CreateHistoryCommand, EnvelopeHistory>();
}
}