private void FillCompatibles(GoodsItem goodsItem) { var compIds = _compatibleSetGoodsGateway.SelectByGoods(goodsItem.HeartId).Select(x => x.CompatibleSetId); var comps = compIds.Select(x => _shopCompatiblesService.GetCompatibleSet(x)).ToList(); goodsItem.CompatibleGoods = comps; }
public CompatibleSet Get(int compatibleSetId) { return(_shopCompatiblesService.GetCompatibleSet(compatibleSetId)); }