예제 #1
0
 private static List <ProductPerson> CreateProductPersons(IEnumerable <ProductInPerson> personProducts, int personId)
 => personProducts
 .Select(p => ProductPersonFactory.CreateProductPerson(p, personId))
 .ToList();
예제 #2
0
 private static List<ProductPerson> CreateProductPersons(IEnumerable<PersonInProduct> personsInProduct, int productId)
     => personsInProduct
         .Select(p => ProductPersonFactory.CreateProductPerson(p, productId))
         .ToList();