Exemple #1
0
 public void CreatePaymentMethod(PaymentMethod paymentMethod)
 {
     using (var db = new Database(_settings))
     {
         db.Insert(paymentMethod);
     }
 }
Exemple #2
0
 public void CreatePaymentMethod(PaymentMethod paymentMethod)
 {
     _userRepository.CreatePaymentMethod(paymentMethod);
 }
Exemple #3
0
 public void UpdatePaymentMethod(PaymentMethod paymentMethod)
 {
     _userRepository.UpdatePaymentMethod(paymentMethod);
 }
Exemple #4
0
 public void UpdatePaymentMethod(PaymentMethod paymentMethod)
 {
     using (var db = new Database(_settings))
     {
         db.Update<PaymentMethod>("set ExternalId = @1 where Id = @0", paymentMethod.Id, paymentMethod.ExternalId);
     }
 }