Refactor AutoMapper profiles and add mappings
Updated `DtoMappingProfile` and `MappingProfiles` to explicitly inherit from `AutoMapper.Profile` for clarity. Added mapping configurations for `RecActionView` to `RecActionDto` and `CreateOutResCommand` to `OutRes` using `CreateMap` in their respective constructors.
This commit is contained in:
parent
50e092d9e2
commit
6a3e0b7d50
@ -3,7 +3,7 @@ using ReC.Domain.Entities;
|
|||||||
|
|
||||||
namespace ReC.Application.Common.Dto;
|
namespace ReC.Application.Common.Dto;
|
||||||
|
|
||||||
public class DtoMappingProfile : Profile
|
public class DtoMappingProfile : AutoMapper.Profile
|
||||||
{
|
{
|
||||||
public DtoMappingProfile()
|
public DtoMappingProfile()
|
||||||
{
|
{
|
||||||
|
|||||||
@ -4,7 +4,7 @@ using ReC.Domain.Entities;
|
|||||||
|
|
||||||
namespace ReC.Application.OutResults;
|
namespace ReC.Application.OutResults;
|
||||||
|
|
||||||
public class MappingProfiles : Profile
|
public class MappingProfiles : AutoMapper.Profile
|
||||||
{
|
{
|
||||||
public MappingProfiles()
|
public MappingProfiles()
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user