コード例 #1
0
 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));
 }
コード例 #2
0
        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));
        }
コード例 #3
0
        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));
        }