Example #1
0
 public List <NewInfo> GetTopNewList(int classid, int topsize)
 {
     return(NewsDAL.GetNewList(1, topsize, classid));
 }
Example #2
0
 /// <summary>
 /// 根据类别获取新闻
 /// </summary>
 /// <param name="classid">类别ID</param>
 /// <param name="pageindex">当前页码</param>
 /// <param name="pagesize">分页大小</param>
 /// <returns>List数据集</returns>
 public List <NewInfo> GetNewList(int pageindex, int pagesize, int classid)
 {
     return(NewsDAL.GetNewList(pageindex, pagesize, classid));
 }
Example #3
0
 /// <summary>
 /// 搜索
 /// </summary>
 /// <param name="pageindex">当前页码</param>
 /// <param name="pagesize">分页大小</param>
 /// <param name="keywords">关键字</param>
 /// <returns></returns>
 public List <NewInfo> GetNewList(int pageindex, int pagesize, string keywords)
 {
     return(NewsDAL.GetNewList(pageindex, pagesize, keywords));
 }
Example #4
0
 public List <NewInfo> GetNewList(int pageindex, int pagesize)
 {
     return(NewsDAL.GetNewList(pageindex, pagesize));
 }