move mapping profile
This commit is contained in:
23
EnvelopeGenerator.Application/Receivers/MappingProfile.cs
Normal file
23
EnvelopeGenerator.Application/Receivers/MappingProfile.cs
Normal file
@@ -0,0 +1,23 @@
|
||||
using AutoMapper;
|
||||
using EnvelopeGenerator.Application.Receivers.Commands;
|
||||
using EnvelopeGenerator.Domain.Entities;
|
||||
|
||||
namespace EnvelopeGenerator.Application.Receivers;
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public class MappingProfile : Profile
|
||||
{
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public MappingProfile()
|
||||
{
|
||||
CreateMap<Receiver, UpdateReceiverCommand>();
|
||||
CreateMap<UpdateReceiverCommand, Receiver>();
|
||||
|
||||
CreateMap<Receiver, CreateReceiverCommand>();
|
||||
CreateMap<CreateReceiverCommand, Receiver>();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user