(function(){
'use strict';

angular
  .module('secondLead.common')

  .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: function (userID, listID, dramaID){
        return Restangular.one("users", userID).one("lists", listID).all("dramas").post({id: dramaID})

      }
    };
  }])
})();

@@ -178,66 +178,262 @@
 ');%0A
-%0A     return %7B%0A%0A      getAll: baseDramas.getList().$object
+     function extract (result)%7B%0A       return result.data;%0A     %7D;  %0A%0A     return %7B%0A%0A      getAll: baseDramas.getList().$object,%0A%0A      getSome: function (genre)%7B%0A        return $http.get('/dramas/filter', %7Bparams: %7Bgenre: genre%7D%7D).then(extract);%0A      %7D
 ,%0A%0A 

Add new function to DramaModel