public void DeleteRow(OrderRow row) { if (row != null && row.ParentOrder == this) { _rows.Remove(row); } }
public OrderRow CreateRow(int productId, int quantity = 1) { var row = new OrderRow(this, productId); row.Quantity = quantity; _rows.Add(row); return row; }