Пример #1
0
        public static void DeleteCustomer(int customerId, DeleteCustomerDelegate deleteCustomerDelegate)
        {
            SqlConnection connection = new SqlConnection(testExample);

            connection.Open();

            deleteCustomerDelegate(connection, customerId);
            connection.Close();
        }
Пример #2
0
        public void DeleteCustomer(int customerId)
        {
            DeleteCustomerDelegate delegateInstanceObj = new DeleteCustomerDelegate(PerformDelete);

            CustomerRepository.DeleteCustomer(customerId, delegateInstanceObj);
        }