Removed ReverseMap from CatalogProfile for one-way mapping. Refactored UpdateAsync in CatalogRepository: eliminated existence check, set @GUID as input only, removed output handling, and simplified return logic.
14 lines
274 B
C#
14 lines
274 B
C#
using AutoMapper;
|
|
using DbFirst.Domain.Entities;
|
|
|
|
namespace DbFirst.Application.Catalogs;
|
|
|
|
public class CatalogProfile : Profile
|
|
{
|
|
public CatalogProfile()
|
|
{
|
|
CreateMap<VwmyCatalog, CatalogReadDto>();
|
|
CreateMap<CatalogWriteDto, VwmyCatalog>();
|
|
}
|
|
}
|