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