public void RegisterPaginationInfo(int pageIndex,int prePage)
        {
            if (this.CurrentPageInfo == null)
                CurrentPageInfo = new EntityModels.PaginationInfo();

            this.CurrentPageInfo.PrePageCount = prePage;
            this.CurrentPageInfo.CurrentIndex = pageIndex;
        }
        public void RegisterPaginationInfo(PagintaionType pageType, int pageIndex, int prePage)
        {
            if (this.PageControlList == null)
                this.PageControlList = new List<PaginationInfo>();

            PaginationInfo pageInfo = new PaginationInfo() 
            {
                PageType=pageType,
                PrePageCount=prePage,
                CurrentIndex=pageIndex
            };
            if (this.PageControlList.Count > 0)
            {
                this.PageControlList.ForEach(queryEntity => 
                {
                    if (queryEntity.PageType.Equals(pageType))
                    {
                        queryEntity = pageInfo;
                        return;
                    }
                    else
                        this.PageControlList.Add(pageInfo);
                });
            }
            else
                this.PageControlList.Add(pageInfo);
                
        }