Exemplo n.º 1
0
        /// <summary>
        /// Search All - iSura version instances as IList with paging.
        /// </summary>
        /// <param name="WithVerses"> used to retrive the SuraVerse - Verse - instances of the Sura </param>
        /// <param name="siteId"></param>
        /// <param name="quranID"></param>
        /// <param name="isAdmin"> used to know to retrive data for front end or for back end pages</param>
        /// <param name="pageNumber"></param>
        /// <param name="pageSize"></param>
        /// <param name="totalPages"></param>
        /// <returns></returns>
        public static List <QuranSura> GetPage_iSura_All(bool WithVerses, int siteId, int quranID, bool isAdmin, int pageNumber, int pageSize, out int totalPages)
        {
            totalPages = 1;
            IDataReader reader = DBiQuran.iSura_GetPage_All(siteId, quranID, isAdmin, pageNumber, pageSize, out totalPages);

            return(LoadListFromReader(reader, WithVerses));
        }