(function(){
'use strict';

angular
  .module('secondLead')
  
  .factory('DramaModel',['Restangular', function(Restangular) {
     var baseDramas = Restangular.all('dramas');

     return {
      getAll: baseDramas.getList().$object,
      getOne: function(dramaID) {
        return Restangular.one('dramas', dramaID).get()
      }
    };
  }])
})();
  
(function(){
'use strict';

angular
  .module('secondLead')
  
  .factory('DramaModel',['Restangular', function(Restangular) {
     var baseDramas = Restangular.all('dramas');

     return {
      getAll: baseDramas.getList().$object,
      getOne: function(dramaID) {
        return Restangular.one('dramas', dramaID).get()
      },
      delete: function(userID, listID, dramaID) {
        return Restangular.one("users", userID).one("lists", listID).one("dramas", dramaID).remove()
      }
    };
  }])
})();
  
Add remove function to drama model
Add remove function to drama model
