Model for the Search page. More...
Public Member Functions | |
SearchModel (IConfiguration configuration, IHubContext< NotificationHub > hubContext) | |
Initializes a new instance of the SearchModel class. More... | |
IActionResult | OnGet () |
Shows the search results with sort and filter options. More... | |
Properties | |
string | Query = "" [get, set] |
The query to search for. More... | |
string | CurrentSort = "" [get, set] |
The current sort option. More... | |
int | CurrentOccurring = 0 [get, set] |
The current occurring option. More... | |
List< Dictionary< string, object > > | SearchResults = [] [get, set] |
The list of search results. More... | |
Private Attributes | |
readonly IConfiguration | configuration |
The IConfiguration instance. More... | |
readonly IHubContext< NotificationHub > | hubContext |
The IHubContext instance. More... | |
Model for the Search page.
|
inline |
Initializes a new instance of the SearchModel class.
configuration | The IConfiguration instance. |
hubContext | The IHubContext instance. |
|
inline |
Shows the search results with sort and filter options.
This page gets the search results from the database and displays them by the specified sort order through a case insensitive query string inserted by the user. The search results are filtered by the query and can be filtered to show only auctions that are currently occurring or all auctions. To see available sort and filter options, see Utils.Auctions.GetAuctions.
|
private |
The IConfiguration instance.
|
private |
The IHubContext instance.
|
getset |
The current occurring option.
|
getset |
The current sort option.
|
getset |
The query to search for.
|
getset |
The list of search results.