22 lines
590 B
C#
22 lines
590 B
C#
using AutoMapper;
|
|
using EnvelopeGenerator.Application.Histories.Commands;
|
|
using EnvelopeGenerator.Domain.Entities;
|
|
|
|
namespace EnvelopeGenerator.Application.Histories;
|
|
|
|
/// <summary>
|
|
///
|
|
/// </summary>
|
|
public class MappingProfile: Profile
|
|
{
|
|
/// <summary>
|
|
///
|
|
/// </summary>
|
|
public MappingProfile()
|
|
{
|
|
CreateMap<CreateHistoryCommand, EnvelopeHistory>()
|
|
.ForMember(dest => dest.Envelope, opt => opt.Ignore())
|
|
.ForMember(dest => dest.Sender, opt => opt.Ignore())
|
|
.ForMember(dest => dest.Receiver, opt => opt.Ignore());
|
|
}
|
|
} |