Refactor catalog mapping and update logic
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.
This commit is contained in:
@@ -7,7 +7,7 @@ public class CatalogProfile : Profile
|
||||
{
|
||||
public CatalogProfile()
|
||||
{
|
||||
CreateMap<VwmyCatalog, CatalogReadDto>().ReverseMap();
|
||||
CreateMap<VwmyCatalog, CatalogReadDto>();
|
||||
CreateMap<CatalogWriteDto, VwmyCatalog>();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user