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:
tekh 2025-12-01 11:10:46 +01:00
parent bf5e2e1d25
commit 41d00036e4

View 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>();
}
}