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.

WeeksDataAccess.js 675B

1234567891011121314151617181920
  1. (function()
  2. {
  3. angular.module('appSdk')
  4. .factory('WeeksDataAccess', ['$q', 'RequestDataAccess', function ($q, RequestDataAccess) {
  5. var DataAccess = {};
  6. DataAccess.getWeek = function(data, promise)
  7. {
  8. return RequestDataAccess.get("/api/week/getweek/" + data.week_id + "/" + data.group_id + "/" + data.type_id, null, promise);
  9. };
  10. DataAccess.getCurrentWeek = function(data, promise)
  11. {
  12. return RequestDataAccess.get("/api/week/getcurrentweek/" + data.group_id + "/" + data.type_id, null, promise);
  13. };
  14. return DataAccess;
  15. }]);
  16. })();