예제 #1
0
        public IList <News> Get(string where, string orderBy, int startIndex, int noRecords, out int totalNoRecords)
        {
            IList <News> news = new List <News>();

            using (SprocWrapper db = new SprocWrapper())
            {
                using (IDataReader reader = db.NewsItems_Get(where, orderBy))
                {
                    FillNewsCollection(reader, news, startIndex, noRecords, out totalNoRecords);
                }
            }

            return(news);
        }