public PagedListResultBuilder <TItem> WithPagedItems(IPagedEnumerable <TItem> items) { this.result.Items = items.ToList(); this.result.PageIndex = items.PageIndex; this.result.PageSize = items.PageSize; this.result.TotalCount = items.TotalCount; return(this); }