コード例 #1
0
 public void PublishAll(IEnumerable <P.Payment> payments)
 {
     foreach (var payment in payments)
     {
         payment.Publish();
         PaymentRepository.Edit(payment);
     }
 }
コード例 #2
0
 protected virtual void OnImport(IEnumerable <P.Payment> payments, P.Payments dbPayments)
 {
     foreach (var payment in payments)
     {
         if (dbPayments.FirstOrDefault(dbPayment => dbPayment.PaymentID == payment.PaymentID) != null)
         {
             PaymentRepository.Edit(payment);
         }
         else
         {
             PaymentRepository.Add(payment);
         }
     }
 }
コード例 #3
0
 public void Edit(P.Payment payment)
 {
     PaymentRepository.Edit(payment);
 }
コード例 #4
0
 public void Publish(P.Payment payment)
 {
     payment.Publish();
     PaymentRepository.Edit(payment);
 }