organizationstructure.svc..js 853 Bytes
Newer Older
eddie.woo's avatar
eddie.woo committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
// web service proxy for role
webservices.factory('organizationStructureService', ['$http', 'apiConfig', function ($http, apiConfig) {
    'use strict';
    return {
        getOrganizationStructureList: function () {
            return $http.get('/organizationstructure/getlist', apiConfig.create());
        },
        updateOrganizationStructure: function (organizationStructure) {
            return $http.put('/organizationstructure', organizationStructure, apiConfig.create());
        },
        addOrganizationStructure: function (organizationStructure) {
            return $http.post('/organizationstructure/add', organizationStructure, apiConfig.create());
        },
        deleteOrganizationStructure: function (id) { 
            return $http.post('/organizationstructure/delete', { id: id }, apiConfig.create());
        }
    };
}]);