private async void Menu_Load(object sender, EventArgs e) { var levels = await levelService.GetLevels(); Levels.DictionaryLevels = levels.ToDictionary(l => l.LevelName); var hints = await hintService.GetHints(); Hints.DictionaryHints = hints.ToDictionary(h => h.Name); await userService.ChangeIsPlayingOfUser(UserProfile.Id, false); }
public ApiResponse GetHints() { ApiResponse apiResponse; try { apiResponse = hintService.GetHints(); } catch (Exception ex) { apiResponse = new ApiResponse(false, ex.Message); } return(apiResponse); }