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