Пример #1
0
        /// <summary>
        /// 根据关键字搜索时,进行搜索计数
        /// </summary>
        /// <param name="keyword"></param>
        public static void Search(string keyword)
        {
            SearchKeyword skw = SearchKeywordService.GetKeyword(keyword);

            if (skw == null)
            {
                skw             = new SearchKeyword();
                skw.Keyword     = keyword;
                skw.SearchCount = 1;
                SearchKeywordService.AddSearchKeyword(skw);
            }
            else
            {
                skw.SearchCount++;
                SearchKeywordService.ModifySearchKeyword(skw);
            }
        }
Пример #2
0
 public static SearchKeyword GetSearchKeywordById(int id)
 {
     return(SearchKeywordService.GetSearchKeywordById(id));
 }
Пример #3
0
 public static void ModifySearchKeyword(SearchKeyword searchKeyword)
 {
     SearchKeywordService.ModifySearchKeyword(searchKeyword);
 }
Пример #4
0
 public static IList <SearchKeyword> GetAllSearchKeywords()
 {
     return(SearchKeywordService.GetAllSearchKeywords());
 }
Пример #5
0
 public static void DeleteSearchKeywordById(int id)
 {
     SearchKeywordService.DeleteSearchKeywordById(id);
 }
Пример #6
0
 public static void DeleteSearchKeyword(SearchKeyword searchKeyword)
 {
     SearchKeywordService.DeleteSearchKeyword(searchKeyword);
 }
Пример #7
0
 public static SearchKeyword AddSearchKeyword(SearchKeyword searchKeyword)
 {
     return(SearchKeywordService.AddSearchKeyword(searchKeyword));
 }
Пример #8
0
 public static string[] GetHotSearchKeywords(string keyword)
 {
     return(SearchKeywordService.GetHotSearchKeywords(keyword));
 }
Пример #9
0
        public string[] GetHotSearchKeywords(string keyWord, int displaycount)
        {
            SearchKeywordService service = new SearchKeywordService();

            return(service.GetHotSearchKeywords(keyWord, displaycount));
        }