private void UpdatePokemon(Pokemon pokemonInfo) { string name = io.PromptUser("Please Enter a name"); pokemonInfo.Name = name; repo.Update(pokemonInfo.Id, pokemonInfo); Console.Clear(); io.DisplayPokemon(repo.ReadById(pokemonInfo.Id)); }
private void UpdateCharacter(Character characterInfo) { string name = io.PromptUser("Please Enter a name"); characterInfo.Name = name; repo.Update(characterInfo.Id, characterInfo); Console.Clear(); io.DisplayCharacter(repo.ReadById(characterInfo.Id)); }
private void UpdateCharacter(Character characterInfo) { string name = io.PromptUser("Please Enter a name"); characterInfo.Name = name; _characterService.UpdateCharacter(characterInfo); Console.Clear(); io.DisplayCharacter(_characterService.ReadByCharacterId(characterInfo.Id)); }