示例#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();