public override void UpdatePaymentServiceSetting(PaymentServiceSetting paymentServiceSetting) { using (SqlConnection connection = this.GetSqlConnection()) { using (SqlCommand command = new SqlCommand("SuCommerce_PaymentSetting_Update", connection)) { command.CommandType = CommandType.StoredProcedure; command.Parameters.Add("@PaymentServiceID", SqlDbType.Int, 4).Value = paymentServiceSetting.PaymentServiceID; command.Parameters.Add("@SettingName", SqlDbType.NVarChar, 50).Value = paymentServiceSetting.SettingName; command.Parameters.Add("@SettingValue", SqlDbType.NVarChar, -1).Value = DataHelper.StringOrNull(paymentServiceSetting.SettingValue); connection.Open(); command.ExecuteNonQuery(); connection.Close(); } } }
public abstract void UpdatePaymentServiceSetting(PaymentServiceSetting paymentServiceSetting);
public static void UpdatePaymentServiceSetting(PaymentServiceSetting paymentServiceSetting) { CommerceDataProvider.LoadProvider().UpdatePaymentServiceSetting(paymentServiceSetting); }