save() {
    return new Promise((resolve, reject) =>
       Db.createOrUpdate(collection, this)
        .then((res) => {
          if (res.value && res.value._id) {
            this._id = res.value._id;
          }
          debug(this);
          resolve(this);
        })
        .catch((err) => {
          error('List', 'createOrUpdate', err);
          reject(err);
        })
    );
  }
/**
   * Save the legislation on the DB and set the returned _id in it
   * @method save
   * @return {Promise} The Legislation object with the _id
   */
Save the legislation on the DB and set the returned _id in it
@method save
@return {Promise} The Legislation object with the _id
Save the legislation on the DB and set the returned _id in it @method save @return { Promise } The Legislation object with the _id
save() {
    return new Promise((resolve, reject) =>
       Db.createOrUpdate(collection, this)
        .then((res) => {
          if (res.value && res.value._id) {
            this._id = res.value._id;
          }
          debug(this);
          resolve(this);
        })
        .catch((err) => {
          error('List', 'createOrUpdate', err);
          reject(err);
        })
    );
  }
save ( ) { return new Promise ( ( resolve , reject ) => Db . createOrUpdate ( collection , this ) . then ( ( res ) => { if ( res . value && res . value . _id ) { this . _id = res . value . _id ; } debug ( this ) ; resolve ( this ) ; } ) . catch ( ( err ) => { error ( 'List' , 'createOrUpdate' , err ) ; reject ( err ) ; } ) ) ; }
Save the legislation on the DB and set the returned _id in it
 @method save
 @return {Promise} The Legislation object with the _id
Save the legislation on the DB and set the returned _id in it @method save @return { Promise } The Legislation object with the _id