///<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; }
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; }