Add AutoMapper profile for CreateOutResCommand mapping
Introduced a new `MappingProfiles` class in the `ReC.Application.OutResults` namespace to configure object-object mapping using the `AutoMapper` library. Added a mapping configuration between `CreateOutResCommand` and `OutRes` using the `CreateMap` method. This simplifies data transformation between application layers.
This commit is contained in:
parent
bf5e2e1d25
commit
41d00036e4
13
src/ReC.Application/OutResults/MappingProfiles.cs
Normal file
13
src/ReC.Application/OutResults/MappingProfiles.cs
Normal file
@ -0,0 +1,13 @@
|
||||
using AutoMapper;
|
||||
using ReC.Application.OutResults.Commands;
|
||||
using ReC.Domain.Entities;
|
||||
|
||||
namespace ReC.Application.OutResults;
|
||||
|
||||
public class MappingProfiles : Profile
|
||||
{
|
||||
public MappingProfiles()
|
||||
{
|
||||
CreateMap<CreateOutResCommand, OutRes>();
|
||||
}
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user