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:
@@ -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>();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user