Méthode | Description | |
---|---|---|
DeleteEvent ( int id ) : void |
Deletes an event based on ID from the database.
|
|
EventsViewModel ( ) : System |
Constructor for EventsViewModel class.
|
|
RegisterGuest ( int eventId ) : bool |
Registers the current logged in user for an event.
|
|
UnregisterGuest ( int eventId ) : bool |
Unregisters the current logged in user for the event.
|
|
UpdateCreatedEvents ( ) : void |
Get events created by the logged in user from the database and update the List for created events.
|
|
UpdateRegisteredEvents ( ) : void |
Get events registered by the logged in user from the database and update the List for registered events.
|
|
UpdateUpcomingEvents ( ) : void |
Get upcoming events from the database and update the List for upcoming events.
|
public RegisterGuest ( int eventId ) : bool | ||
eventId | int | Event ID |
Résultat | bool |
public UnregisterGuest ( int eventId ) : bool | ||
eventId | int | Event ID |
Résultat | bool |