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