You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

GroupsBusiness.js 681B

12345678910111213141516171819202122232425
  1. (function()
  2. {
  3. angular.module('appSdk')
  4. .factory('GroupsBusiness', ['GroupsDataAccess', '$q', 'DataShareBusiness', function (GroupsDataAccess, $q, DataShareBusiness) {
  5. var Business = {};
  6. Business.getAll = GroupsDataAccess.getAll;
  7. Business.loadAll = function(promise)
  8. {
  9. var defer = $q.defer();
  10. Business.getAll(promise).then(function(data)
  11. {
  12. DataShareBusiness.Groups = data;
  13. defer.resolve(data);
  14. }, defer.reject);
  15. return defer.promise;
  16. };
  17. return Business;
  18. }]);
  19. })();