ScientificReport
ScientificReport.DTO.Models.PageModel Class Reference
Inheritance diagram for ScientificReport.DTO.Models.PageModel:
Inheritance graph
Collaboration diagram for ScientificReport.DTO.Models.PageModel:
Collaboration graph

Public Attributes

int TotalPages => (int)Math.Ceiling(decimal.Divide(Count, PageSize))
 
bool ShowPrevious => CurrentPage > 1
 
bool ShowNext => CurrentPage < TotalPages
 

Properties

int CurrentPage [get, set]
 
int Count = 1 [get, set]
 
virtual int PageSize [get, set]
 

Detailed Description

Definition at line 5 of file PageModel.cs.

Member Data Documentation

bool ScientificReport.DTO.Models.PageModel.ShowNext => CurrentPage < TotalPages

Definition at line 12 of file PageModel.cs.

bool ScientificReport.DTO.Models.PageModel.ShowPrevious => CurrentPage > 1

Definition at line 11 of file PageModel.cs.

int ScientificReport.DTO.Models.PageModel.TotalPages => (int)Math.Ceiling(decimal.Divide(Count, PageSize))

Definition at line 10 of file PageModel.cs.

Property Documentation

int ScientificReport.DTO.Models.PageModel.Count = 1
getset

Definition at line 8 of file PageModel.cs.

int ScientificReport.DTO.Models.PageModel.CurrentPage
getset

Definition at line 7 of file PageModel.cs.

virtual int ScientificReport.DTO.Models.PageModel.PageSize
getset

Definition at line 9 of file PageModel.cs.


The documentation for this class was generated from the following file: