Пример #1
0
 public void AddPayment(Payment payment)
 {
     Payments.Add(payment);
 }
Пример #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();
     }
 }