Exemplo n.º 1
0
 public void AddPayment(Payment payment)
 {
     Payments.Add(payment);
 }
Exemplo n.º 2
0
 public void AddPayment(string orderId, Payment payment)
 {
     using (var session = GetReplicationStore().OpenSession())
     {
         var existingOrder = session.Load<Order>(orderId);
         existingOrder.Payments.Add(payment);
         session.SaveChanges();
     }
 }