public override void PortletRemovedFromPage(Portlet portlet, PortalPageInfo page)
 {
     try
     {
         var mapper = new Mappers.NHSimpleQuerySettingsMapper();
         mapper.Delete(mapper.GetSettings(portlet.ID).ToList());
     }
     catch (Exception ex)
     {
         ExceptionManager.Publish(ex);
     }
 }
 public SettingsHelper(List <NHSimpleQuerySetting> settings, Guid portletId, NHSimpleQuerySettingsMapper mapper)
 {
     this._settings  = settings;
     this._portletId = portletId;
     this._mapper    = mapper;
 }