25 lines
707 B
C#
25 lines
707 B
C#
using AutoMapper;
|
|
using EnvelopeGenerator.Application.DocStatus.Commands;
|
|
using EnvelopeGenerator.Domain.Entities;
|
|
|
|
namespace EnvelopeGenerator.Application.DocStatus;
|
|
|
|
/// <summary>
|
|
///
|
|
/// </summary>
|
|
public class MappingProfile : Profile
|
|
{
|
|
/// <summary>
|
|
///
|
|
/// </summary>
|
|
public MappingProfile()
|
|
{
|
|
CreateMap<CreateDocStatusCommand, DocumentStatus>()
|
|
.ForMember(dest => dest.Envelope, opt => opt.Ignore())
|
|
.ForMember(dest => dest.Receiver, opt => opt.Ignore());
|
|
|
|
CreateMap<UpdateDocStatusCommand, DocumentStatus>()
|
|
.ForMember(dest => dest.Envelope, opt => opt.Ignore())
|
|
.ForMember(dest => dest.Receiver, opt => opt.Ignore());
|
|
}
|
|
} |