public static void AddItemPagination(ItemType pageItemType, int currentPage, int currentViewPerPage, ref HtmlGenericControl paginationCtrl, Dictionary <string, string> searchCriteria)
        {
            var itemCount       = new ItemsModel().GetItemsCount(pageItemType, searchCriteria);
            var noOfPages       = Convert.ToInt32(Math.Ceiling(((double)itemCount / (double)currentViewPerPage)));
            var displayingPages = CommonManager.GetDisplayingPages(currentPage, noOfPages);

            CreateCommonPaginationControl(currentPage, ref paginationCtrl, displayingPages, noOfPages);
        }
        public static void AddPurchItemPagination(int currentPage, int currentViewPerPage, ref HtmlGenericControl paginationCtrl, PurchItemGetType getType, int custId = 0, string custEmail = null, int purchCartId = 0, DateTime?fromPurchDate = null, DateTime?toPurchDate = null)
        {
            var itemCount       = new PurchItemModel().GetPurchItemCount(getType, custId, custEmail, purchCartId, fromPurchDate, toPurchDate);
            var noOfPages       = Convert.ToInt32(Math.Ceiling(((double)itemCount / (double)currentViewPerPage)));
            var displayingPages = CommonManager.GetDisplayingPages(currentPage, noOfPages);

            CreateCommonPaginationControl(currentPage, ref paginationCtrl, displayingPages, noOfPages);
        }