Example #1
0
        public IList <Guestbook> Get(string where, string orderBy, int startIndex, int noRecords, out int totalNoRecords)
        {
            IList <Guestbook> guestbookEntries = new List <Guestbook>();

            using (SprocWrapper db = new SprocWrapper())
            {
                using (IDataReader reader = db.GuestbookEntries_Get(where, orderBy))
                {
                    FillGuestbookCollection(reader, guestbookEntries, startIndex, noRecords, out totalNoRecords);
                }
            }

            return(guestbookEntries);
        }