Beispiel #1
0
 private void AddExteriorColors(Brand brand, BrandModel brandModel)
 {
     foreach (var brandModelExteriorColorId in brandModel.ExteriorColorIds)
     {
         var color = _exteriorColorRepository.GetById(brandModelExteriorColorId);
         if (color != null)
         {
             brand.ExteriorColors.Add(color);
         }
     }
 }