示例#1
0
        /// <summary>
        /// Hasan Add 2015.03.09 For Recent Ads of Materials For CategoryID
        /// </summary>
        /// <param name="categoryIID"></param>
        /// <returns></returns>

        public List <SP_GetAllSortedRecentMaterialAdsForCategoreyIIDResult> GetAllSortedRecentMaterialForCategoryIID(Int64 categoryID, int startRowIndex, int maxRowNumber)
        {
            try
            {
                OiiOHaatDCDataContext dbContext = DatabaseHelper.GetDataModelDataContext();
                var listdata = dbContext.SP_GetAllSortedRecentMaterialAdsForCategoreyIID(categoryID, startRowIndex, maxRowNumber).ToList();
                return(listdata);
            }

            catch (Exception ex)
            {
                throw new Exception(ex.Message, ex);
            }
        }