예제 #1
0
 ///<summary>
 ///</summary>
 ///<param name="contents"></param>
 ///<param name="recordCount"></param>
 ///<param name="pageCount"></param>
 public PagedList(IEnumerable <T> contents, int recordCount, int pageCount, decimal priceCount)
 {
     if (contents != null)
     {
         ContentList = EnumerableExpand.ToList(contents);
     }
     RecordCount = recordCount;
     PageCount   = pageCount;
     PriceCount  = priceCount;
 }
예제 #2
0
 public PagedList(IEnumerable <T> contents, int recordCount, int pageCount, int pageSize, int currentPage, int defCount = 0)
 {
     if (contents != null)
     {
         ContentList = EnumerableExpand.ToList(contents);
     }
     RecordCount = recordCount;
     PageCount   = pageCount;
     PageSize    = pageSize;
     CurrentPage = currentPage;
     DefCount    = defCount;
 }