Пример #1
0
 public static PageListResult UpdateForPageListResult <T, TResult>(this PageList <T> list, Func <T, TResult> selector)
 {
     return(new PageListResult(list.Items.Select(selector), list.Total));
 }
Пример #2
0
 public static PageList <TResult> MapPageListTo <T, TResult>(this PageList <T> list, Func <T, TResult> selector)
 {
     return(new PageList <TResult>(list.PageIndex, list.PageSize, list.Total, list.Items.Select(selector).ToList()));
 }
Пример #3
0
 public static PageListResult UpdateForPageListResult <T>(this PageList <T> list)
 {
     return(new PageListResult(list.Items, list.Total));
 }