model.getSite($routeParams.site)
            .then(function(site) {
                $scope.site = site;
                return model.getTask(site, $routeParams.id);
            })