DataPage<T> constructor
Creates a new instance of data page and assigns its values.
data
a list of items from the retrieved page.total
(optional) .
Implementation
DataPage(List<T> data, int total)
: data = data,
total = total;