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) .
Creates a new instance of data page and assigns its values.
data
a list of items from the retrieved page.total
(optional) .