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:
@@ -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()
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user