Exemplo n.º 1
0
 public bool DeleteSearchWord(List <SearchWordConvertMapDb> delList)
 {
     try
     {
         Func <SqlConnection, bool> action = (connection) => DalSearchWordConvert.DeleteSearchWord(connection, delList);
         return(_dbManager.Execute(action));
     }
     catch (Exception e)
     {
         Monitor.ExceptionMonitor.AddNewMonitor("删除搜索关键词配置异常", e, "删除异常", MonitorLevel.Critial, MonitorModule.Other);
         return(false);
     }
 }
Exemplo n.º 2
0
        /// <summary>
        /// 批量删除
        /// </summary>
        /// <param name="delList"></param>
        /// <param name="configType"></param>
        /// <returns></returns>
        public bool DeleteSearchWord(List <SearchWordConvertMapDb> delList, SearchWordConfigType configType)
        {
            try
            {
                bool Action(SqlConnection connection) => DalSearchWordConvert.DeleteSearchWord(connection, delList, configType);

                return(_dbManager.Execute(Action));
            }
            catch (Exception e)
            {
                Monitor.ExceptionMonitor.AddNewMonitor("删除搜索关键词配置异常", e, "删除异常", MonitorLevel.Critial);
                return(false);
            }
        }