Beispiel #1
0
 public PurchaseItem(Purchase purchase, Guid productId, Money price, Quantity quantity)
 {
     Purchase = purchase;
     ProductId = productId;
     Price = price;
     Quantity = quantity;
 }
 public void Add(Purchase purchase)
 {
     _session.Save(purchase);
 }