create(data) {
    return this.notificationController
      .create(data)
      .then(result => result)
      .catch((err) => {
        throw err;
      });
  }
/**
   * Register a new notification in the database
   * @param  {string} data.type  type of the notification
   * @param  {string} data.to    user indentifier
   * @param  {string} data.title title fo the notification
   * @param  {string} data.msg   notification content
   */
Register a new notification in the database
@param  {string} data.type  type of the notification
@param  {string} data.to    user indentifier
@param  {string} data.title title fo the notification
@param  {string} data.msg   notification content
Register a new notification in the database @param { string } data . type type of the notification @param { string } data . to user indentifier @param { string } data . title title fo the notification @param { string } data . msg notification content
create(data) {
    return this.notificationController
      .create(data)
      .then(result => result)
      .catch((err) => {
        throw err;
      });
  }
create ( data ) { return this . notificationController . create ( data ) . then ( result => result ) . catch ( ( err ) => { throw err ; } ) ; }
Register a new notification in the database
 @param  {string} data.type  type of the notification
 @param  {string} data.to    user indentifier
 @param  {string} data.title title fo the notification
 @param  {string} data.msg   notification content
Register a new notification in the database @param { string } data . type type of the notification @param { string } data . to user indentifier @param { string } data . title title fo the notification @param { string } data . msg notification content