Beispiel #1
0
 /// <summary>
 /// 添加
 /// </summary>
 /// <param name="key">对象</param>
 /// <returns>int</returns>
 public static dynamic Add(CMS_Keyword key)
 {
     try
     {
         return(CMS_Keyword_DAL.Add(key));
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
Beispiel #2
0
 /// <summary>
 /// 查找关键字,有条件
 /// </summary>
 /// <param name="keyFilter">对象</param>
 /// <returns>list</returns>
 public static dynamic Find(CMS_Keyword keyFilter)
 {
     try
     {
         return(CMS_Keyword_DAL.Find(keyFilter));
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
Beispiel #3
0
 /// <summary>
 /// 分页查询热搜
 /// </summary>
 /// <param name="keyFilter">对象</param>
 /// <param name="limit">一页N条数据</param>
 /// <param name="page">当前第N页</param>
 /// <returns></returns>
 public static dynamic Find(CMS_Keyword keyFilter, int limit, int page)
 {
     try
     {
         Pagination pagination = CMS_Keyword_DAL.Find(keyFilter, limit, page);
         return(pagination);
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
Beispiel #4
0
 /// <summary>
 /// 得到关键字
 /// </summary>
 /// <returns>list</returns>
 public static dynamic Find()
 {
     try
     {
         var list = CMS_Keyword_DAL.Find();
         return(list);
     }
     catch (Exception error)
     {
         throw error;
     }
 }