Model for the Account page. More...
Public Member Functions | |
AccountModel (IConfiguration configuration, IHubContext< NotificationHub > hubContext) | |
Initializes a new instance of the AccountModel class. More... | |
IActionResult | OnGet () |
The action that occurs when the user visits the account page. More... | |
Properties | |
List< Dictionary< string, object > >? | AuctionsList [get, set] |
The list of auctions of the account to display. More... | |
Private Attributes | |
readonly IConfiguration | configuration |
The IConfiguration instance. More... | |
readonly IHubContext< NotificationHub > | hubContext |
The IHubContext instance. More... | |
Model for the Account page.
|
inline |
Initializes a new instance of the AccountModel class.
configuration | The IConfiguration instance. |
hubContext | The IHubContext instance. |
|
inline |
The action that occurs when the user visits the account page.
Checks if the user is the owner of the account, if so add edit option by redirecting to the current user my account page.
Checks if the client exists, if not, redirects to the not found error (404) page.
Displays the following information about the client:
|
private |
The IConfiguration instance.
|
private |
The IHubContext instance.
|
getset |
The list of auctions of the account to display.