public static void DeleteCustomer(int customerId, DeleteCustomerDelegate deleteCustomerDelegate)
        {
            SqlConnection connection = new SqlConnection(testExample);

            connection.Open();

            deleteCustomerDelegate(connection, customerId);
            connection.Close();
        }
Beispiel #2
0
        public void DeleteCustomer(int customerId)
        {
            DeleteCustomerDelegate delegateInstanceObj = new DeleteCustomerDelegate(PerformDelete);

            CustomerRepository.DeleteCustomer(customerId, delegateInstanceObj);
        }