public SalesOrderLine AddItem(Product product, decimal quantity) { var line = new SalesOrderLine { Product = product, Quantity = quantity }; Items.Add(line); return(line); }
public SalesOrderLine AddItem(Product product, decimal quantity) { var line = new SalesOrderLine { Product = product, Quantity = quantity }; Items.Add(line); return line; }