taxCalendarEvent.svc.js 612 Bytes
Newer Older
1 2 3 4 5 6 7 8
// web service proxy for org
webservices.factory('taxCalendarEventService', ['$http', 'apiConfig', 'httpCacheService',
function ($http, apiConfig, httpCacheService) {
    'use strict';

    return {
        
        add: function (model) {
Mccoy Z Xia's avatar
Mccoy Z Xia committed
9
            return $http.post('/calendarEvent/add', model, apiConfig.create());
10 11 12
        },

        update: function (model) {
Mccoy Z Xia's avatar
Mccoy Z Xia committed
13
            return $http.post('/calendarEvent/update', model, apiConfig.create());
14 15
        }
        ,
16 17
        deleteEvent: function (id) {
            return $http.get('/calendarEvent/delete/' + id, apiConfig.create());
18 19 20
        }
    };
}]);