'use strict';

var UnpostedController = ['$scope', 'info', 'Unposted', function ($scope, info, Unposted) {
    $scope.info = info;
    $scope.refresh = function () {
        Unposted.query({}, function (result) {
            $scope.info = result;
            $scope.apply();
        });
    };
}];
UnpostedController.resolve = {
    info:['Unposted', function (Unposted) {
        return Unposted.query({}).$promise;
    }]
};