(function(window, angular, undefined) {
  'use strict';

  var orbweaver = angular.module('orbweaver', ['ng']);

  orbweaver.factory("restfulService", function($q) {
    return {
      asPromises: function(resourceService) {
        return {
          all: function() {
            var deferred = $q.defer();
            resourceService.resource.all({},
              function(response) {
                deferred.resolve(response);
              },
              function(response) {
                deferred.reject(response);
              });
            return deferred.promise;
          },
          find: function(id) {
            var deferred = $q.defer();
            resourceService.resource.get({ id: id },
              function(response) {
                deferred.resolve(response);
              },
              function(response) {
                deferred.reject(response);
              });
            return deferred.promise;
          }
        };
      }
    };
  });
})(window, window.angular);

@@ -933,32 +933,391 @@
 ferred.promise;%0A
+          %7D,%0A          save: function(res)%7B%0A            var deferred = $q.defer();%0A            resourceService.resource.save(res,%0A              function(response) %7B%0A                deferred.resolve(response);%0A              %7D,%0A              function(response) %7B%0A                deferred.reject(response);%0A              %7D);%0A            return deferred.promise;%0A
           %7D%0A    

add save to resource wrapper