public bool InsertDefaultSearchConfig(DefaultSearchConfig model)
 {
     try
     {
         return(DALDefaultSearchConfig.InsertDefaultSearchConfig(model));
     }
     catch (TuhuBizException)
     {
         throw;
     }
     catch (Exception ex)
     {
         var exception = new DefaultSearchConfigException(1, "InsertDefaultSearchConfig", ex);
         Logger.Log(Level.Error, exception, "InsertDefaultSearchConfig");
         throw ex;
     }
 }
 public bool DeleteDefaultSearchConfig(int id)
 {
     try
     {
         return(DALDefaultSearchConfig.DeleteDefaultSearchConfig(id));
     }
     catch (TuhuBizException)
     {
         throw;
     }
     catch (Exception ex)
     {
         var exception = new DefaultSearchConfigException(1, "DeleteDefaultSearchConfig", ex);
         Logger.Log(Level.Error, exception, "DeleteDefaultSearchConfig");
         throw ex;
     }
 }
 public List <DefaultSearchConfig> GetDefaultSearchConfigList(string type, int pageSize, int pageIndex, out int recordCount)
 {
     try
     {
         return(DALDefaultSearchConfig.GetDefaultSearchConfigList(type, pageSize, pageIndex, out recordCount));
     }
     catch (TuhuBizException)
     {
         throw;
     }
     catch (Exception ex)
     {
         var exception = new DefaultSearchConfigException(1, "GetDefaultSearchConfigList", ex);
         Logger.Log(Level.Error, exception, "GetDefaultSearchConfigList");
         throw ex;
     }
 }