Beispiel #1
0
        /// <summary>
        /// Gets an IList with page of instances of item.
        /// </summary>
        /// <param name="pageNumber">The page number.</param>
        /// <param name="pageSize">Size of the page.</param>
        /// <param name="totalPages">total pages</param>
        public static List <Item> GetPage(int pageNumber, int pageSize, out int totalPages)
        {
            totalPages = 1;
            IDataReader reader = DBItems.GetPage(pageNumber, pageSize, out totalPages);

            return(LoadListFromReader(reader));
        }