How to use $scope variable got from one function to another? : My angular controller's function looks like:

    $scope.selectinteresteduser= function(Id){
       $scope.selecteduserid=Id;
    }
    $scope.sendMessageToEmployeer = function($scope.selecteduserid) {
    
       alert($scope.selecteduserid);
    }

I want to pass the value of $scope.selecteduserid to sendMessageToEmployer function. How to do it? I am blank :(

Thanks in advance
