/// <summary> /// 指定条数获取新闻列表 /// </summary> /// <param name="topNum">获取条数</param> /// <param name="cate">新闻大类别</param> /// <param name="positioin">推荐位置</param> /// <param name="tag">Tag标签</param> /// <param name="newsType">新闻小类别</param> /// <returns></returns> public IList <EyouSoft.Model.NewsStructure.NewsModel> GetList(int topNum, EyouSoft.Model.NewsStructure.NewsCategory cate, EyouSoft.Model.NewsStructure.RecPosition positioin , int?tag , int?newsType) { if (topNum > 0) { return(dal.GetList(topNum, cate, positioin, tag, newsType)); } return(null); }
/// <summary> /// 获取指定大类别的新闻列表 /// </summary> /// <param name="TopNum">需要返回的记录数</param> /// <param name="Category">大类别枚举值</param> /// <returns></returns> public IList <EyouSoft.Model.NewsStructure.WebSiteNews> GetListByCategory(int TopNum, EyouSoft.Model.NewsStructure.NewsCategory Category) { if (TopNum > 0) { return(dal.GetTopNumNews(TopNum, Category, null, EyouSoft.Model.NewsStructure.RecPosition.普通推荐资讯, 0, null, 0)); } else { return(null); } }