예제 #1
0
        /// <summary>
        /// Search By Title - iQuran version instances as IList with paging.
        /// </summary>
        /// <param name="WithSuras"> used to retrive the QuranSuras - Sura - instances of the Quran Revesion </param>
        /// <param name="siteId"></param>
        /// <param name="isAdmin">used to know to retrive data for front end or for back end pages</param>
        /// <param name="Title">Search Criteria</param>
        /// <param name="pageNumber"></param>
        /// <param name="pageSize"></param>
        /// <param name="totalPages"></param>
        /// <returns></returns>
        public static List <Quran> GetPage_iQuran_ByTitle(bool WithSuras, int siteId, bool isAdmin, string Title, int pageNumber, int pageSize, out int totalPages)
        {
            totalPages = 1;
            IDataReader reader = DBiQuran.iQuran_GetPage_ByTitle(siteId, isAdmin, Title, pageNumber, pageSize, out totalPages);

            return(LoadListFromReader(reader, WithSuras));
        }