- Extend CreateHistoryCommand to implement IRequest<long?> - Introduce CreateHistoryCommandHandler to handle command via IRepository<EnvelopeHistory> - Implement async creation and verification of EnvelopeHistory records
22 lines
511 B
C#
22 lines
511 B
C#
using AutoMapper;
|
|
using EnvelopeGenerator.Application.Histories.Commands;
|
|
using EnvelopeGenerator.Application.Histories.Queries.Read;
|
|
using EnvelopeGenerator.Domain.Entities;
|
|
|
|
namespace EnvelopeGenerator.Application.Histories;
|
|
|
|
/// <summary>
|
|
///
|
|
/// </summary>
|
|
public class MappingProfile: Profile
|
|
{
|
|
/// <summary>
|
|
///
|
|
/// </summary>
|
|
public MappingProfile()
|
|
{
|
|
CreateMap<EnvelopeHistory, ReadHistoryResponse>();
|
|
CreateMap<CreateHistoryCommand, EnvelopeHistory>();
|
|
}
|
|
}
|