View on GitHub

documentation

Documentation for DdD products

    /// <summary>
    /// Paged articles view model.
    /// </summary>
    public class PagedDTO<T>
    {
        /// <summary>
        /// The number of this page.
        /// </summary>
        public int PageNumber { get; set; }

        /// <summary>
        /// The size of this page.
        /// </summary>
        public int PageSize { get; set; }

        /// <summary>
        /// The total number of pages available.
        /// </summary>
        public int TotalNumberOfPages { get; set; }

        /// <summary>
        /// The total number of records available.
        /// </summary>
        public long TotalNumberOfRecords { get; set; }

        /// <summary>
        /// The results of this page.
        /// </summary>
        public IEnumerable<T> Results { get; set; }
    }