public List <NewInfo> GetTopNewList(int classid, int topsize) { return(NewsDAL.GetNewList(1, topsize, classid)); }
/// <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)); }
/// <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)); }
public List <NewInfo> GetNewList(int pageindex, int pagesize) { return(NewsDAL.GetNewList(pageindex, pagesize)); }