Model for the Index page. More...
Public Member Functions | |
IndexModel (IConfiguration configuration, IHubContext< NotificationHub > hubContext) | |
Initializes a new instance of the IndexModel class. More... | |
void | OnGet (string sort) |
The action that occurs when the user visits the index page. More... | |
Properties | |
string | CurrentSort = "" [get, set] |
The current sort order of the auctions. More... | |
List< Dictionary< string, object > >? | Auctions [get, set] |
The list of auctions to display. More... | |
Private Attributes | |
readonly IConfiguration | configuration |
The IConfiguration instance. More... | |
readonly IHubContext< NotificationHub > | hubContext |
The IHubContext instance. More... | |
Model for the Index page.
|
inline |
Initializes a new instance of the IndexModel class.
configuration | The IConfiguration instance. |
hubContext | The IHubContext instance. |
|
inline |
The action that occurs when the user visits the index page.
Displays the list of auctions sorted by the default sort order. The default sort is by the auction's end date, in ascending order. To see available sort options, see Utils.Auctions.GetAuctions.
sort | The sort order to use. |
|
private |
The IConfiguration instance.
|
private |
The IHubContext instance.
|
getset |
The list of auctions to display.
|
getset |
The current sort order of the auctions.