Пример #1
0
 public static PageResponseDto <TR> FromPaging <TD, TR>(PageQueryDto query, Paging <TD> paging, Func <TD, TR> f)
 {
     return(new PageResponseDto <TR>(query)
     {
         Total = paging.TotalRecords,
         Data = paging.Data.Select(f).ToArray()
     });
 }
Пример #2
0
 public PageResponseDto(PageQueryDto query)
 {
     Page  = query.Page;
     Count = query.Count;
 }