public PagingResult(PageDetails pageDetails, IEnumerable <TItem> items) { if (pageDetails == null) { throw new ArgumentNullException(nameof(pageDetails)); } this.Paging = pageDetails; this.items = items; }
public static PageDetailsDto FromDomain(PageDetails paging) { return new PageDetailsDto { CurrentPage = paging.CurrentPage, PageSize = paging.PageSize, ItemsOnPage = paging.ItemsOnPage, TotalPages = paging.TotalPages, TotalItems = paging.TotalItems }; }