cellComment.svc.js 631 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
// web service proxy for role
webservices.factory('cellCommentService', ['$http', 'apiConfig', function ($http, apiConfig) {
    'use strict';
    return {
        getCellComments: function (cellDataId) {
            return $http.get('/CellComment/List?cellDataId=' + cellDataId, apiConfig.createVat());
        },
        addCellComment: function (cellComment) {
            return $http.post('/CellComment/Add', cellComment, apiConfig.createVat());
        },
        deleteCellComment: function (commentId) {
            return $http.post('/CellComment/Delete/' + commentId, {}, apiConfig.createVat());
        },
    };
}]);