Add MappingProfile for CreateRecActionCommand mapping
Introduced a new `MappingProfile` class in the `ReC.Application.RecActions` namespace to define object-to-object mapping configurations using AutoMapper. The profile maps `CreateRecActionCommand` to `RecAction`, enabling seamless data transformation between these types. Added necessary `using` directives for `ReC.Application.RecActions.Commands` and `ReC.Domain.Entities`.
This commit is contained in:
parent
918372371e
commit
a7ad55e973
12
src/ReC.Application/RecActions/MappingProfile.cs
Normal file
12
src/ReC.Application/RecActions/MappingProfile.cs
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
using ReC.Application.RecActions.Commands;
|
||||||
|
using ReC.Domain.Entities;
|
||||||
|
|
||||||
|
namespace ReC.Application.RecActions;
|
||||||
|
|
||||||
|
public class MappingProfile : AutoMapper.Profile
|
||||||
|
{
|
||||||
|
public MappingProfile()
|
||||||
|
{
|
||||||
|
CreateMap<CreateRecActionCommand, RecAction>();
|
||||||
|
}
|
||||||
|
}
|
||||||
Loading…
x
Reference in New Issue
Block a user