public bool DeleteTrue(IList <int> idList, iPow.Infrastructure.Data.DataSys.Sys_AdminUser operUser) { var res = false; if (idList != null && idList.Count > 0) { var delete = searchInfoRepository.GetList(e => idList.Contains(e.SearchID)).ToList(); if (delete != null && delete.Count > 0) { res = DeleteTrue(delete, operUser); } } return(res); }
/// <summary> /// Gets the hot key words list. /// </summary> /// <param name="take">The take.</param> /// <returns></returns> public List <string> GetHotKeyWordsList(int take) { List <string> data = new List <string>(); data = searchInfoRepository.GetList().GroupBy(e => e.KeyWord).Select(e => e.Key).Take(take).ToList(); return(data); }