Previous part: Adding Objects to a Local Database in MAUI .NET 9 [GamesCatalog] - Part 10
Step 1. In GameRepo, add a function to retrieve a game from the local database using igdbId and another function to update the game's status.
![GameRepo]()
Code
Press [Ctrl + .] on GetByIGDBIdAsync and UpdateStatusAsync, then add them to the interface.
Step 2. In GameService, add both functions.
![GameService]()
Code
Press [Ctrl + .] on GetByIGDBIdAsync and UpdateStatusAsync, then add them to the interface.
Step 3. Add a variable for the local game ID.
![Local game ID]()
Step 4. Still in AddGameVM, create a function to retrieve the game.
Step 5. Call this function asynchronously using ApplyQueryAttributes.
![ApplyQueryAttributes]()
Code
Step 6. Modify the confirmation command to update the game's status.
Step 7. With this, we can now update already registered games.
![Registered games]()
In Android
![In Android]()
Next part: We will begin creating the app’s main screen.