コード例 #1
0
        private void CreateCharacter()
        {
            Character newCharacter = io.PromptUserForNewCharacter();

            newCharacter = repo.Create(newCharacter);

            io.DisplayCharacter(repo.ReadById(newCharacter.Id));
        }
コード例 #2
0
        private void CreateCharacter()
        {
            Character newCharacter = io.PromptUserForNewCharacter();

            newCharacter = _characterService.CreateCharacter(newCharacter);

            io.DisplayCharacter(_characterService.ReadByCharacterId(newCharacter.Id));
        }