変更前のコード:
List<ProductBrandModel> model = brands.Select(item => Mapper.Map<ProductBrand, ProductBrandModel>(item)).ToList();
改善後のコード:
List<ProductBrandModel> model = brands.Select(Mapper.Map<ProductBrand, ProductBrandModel>).ToList();
これは何をしているのですか?brands
コレクション内のすべてのアイテムでそのマッピングを暗黙的に実行していますか?