public static void DeleteCustomer(int customerId, DeleteCustomerDelegate deleteCustomerDelegate) { SqlConnection connection = new SqlConnection(testExample); connection.Open(); deleteCustomerDelegate(connection, customerId); connection.Close(); }
public void DeleteCustomer(int customerId) { DeleteCustomerDelegate delegateInstanceObj = new DeleteCustomerDelegate(PerformDelete); CustomerRepository.DeleteCustomer(customerId, delegateInstanceObj); }