From 41d00036e4d95d705ddda60d545c2183f2777ae0 Mon Sep 17 00:00:00 2001 From: TekH Date: Mon, 1 Dec 2025 11:10:46 +0100 Subject: [PATCH] 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. --- src/ReC.Application/OutResults/MappingProfiles.cs | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 src/ReC.Application/OutResults/MappingProfiles.cs diff --git a/src/ReC.Application/OutResults/MappingProfiles.cs b/src/ReC.Application/OutResults/MappingProfiles.cs new file mode 100644 index 0000000..2f1e01e --- /dev/null +++ b/src/ReC.Application/OutResults/MappingProfiles.cs @@ -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(); + } +} \ No newline at end of file