using AutoMapper; using Microsoft.eShopWeb.ApplicationCore.Entities; using Microsoft.eShopWeb.PublicApi.CatalogBrandEndpoints; using Microsoft.eShopWeb.PublicApi.CatalogItemEndpoints; using Microsoft.eShopWeb.PublicApi.CatalogTypeEndpoints; namespace Microsoft.eShopWeb.PublicApi; public class MappingProfile : Profile { public MappingProfile() { CreateMap(); CreateMap() .ForMember(dto => dto.Name, options => options.MapFrom(src => src.Type)); CreateMap() .ForMember(dto => dto.Name, options => options.MapFrom(src => src.Brand)); } }