How to get the value of a dropdown?

Hello,
I made a UI dropdown in the inspector. But i get a error. The UI dropdown object is calling ServiceDropdown. I want to get the value and use this in another function in the same script. Thats why a have the public int dropdownValue.

	public int dropdownValue;
	public void DropdownKeuze()
	{
		dropdownValue = GameObject.Find("ServiceDropdown").GetComponent<Dropdown>().value;
		Debug.Log(dropdownValue);
	}![202613-1.jpg|367x257](upload://pBowNofDPXDplMXLkXFqsl1JpIf.jpeg)

Can someone help me.

I got the answer:

    //Dropdown menu
    	public int DropdownLayer;
    	public void DropdownInput(int val)
    	{
    		DropdownLayer = val;
    	}