in src/app/ContosoTraders.Api.Core/Services/Implementations/ProductService.cs [35:49]
public IEnumerable<ProductDto> GetProducts(int[] brands, int[] typeIds)
{
var responseDaos = brands.Any() || typeIds.Any()
? GetProductsByFilter(brands, typeIds)
: GetAllProducts();
var allBrands = _productRepository.Brands.ToArray();
var allTypes = _productRepository.Types.ToArray();
var allFeatures = _productRepository.Features.ToArray();
var responseDtos = responseDaos.ToArray()
.Select(dao => CustomMapping(dao, allBrands, allTypes, allFeatures));
return responseDtos;
}