I have an angularjs app.
I added a button to my app and when a user clicks on it , a pop up screen is displayed.
The user should choose from 2 drop down lists so i have two values that i need to send back to my service who opened the modal screen.

The service that opens the pop up screen

```
app.service('OriginalService', [ '$modal',
function ($modal) {

this.openDialog = function(){
        var modalInstance = $modal.open({
            templateUrl: 'ModalScreen.html',
            controller: 'ModalController'
        });

        modalInstance.result.then(function (oneFilter, secondFilter) {
            this.filtersMananger.oneFilter= oneFilter;
            this.filtersMananger.secondFilter= secondFilter;
        }, function () {

        });
    };
}]);

```

In the ModalController when i click OK i sent the two values:

```
app.controller('ModalController', ['$scope', '$modalInstance',
                                     function ($scope, $modalInstance) {

$scope.ok = function () {
        $modalInstance.close($scope.filterMananger.oneFilter, 
                             $scope.filterMananger.secondFilter);
    };
}]);

```

The problem is that only the first value is return to the service.
I saw in other examples and maybe in angular they expected to one result only:

```
modalInstance.result.then(function (result)

```

Can i send two or values as a result or must i send an object with the two values only in this case?