Exemplo n.º 1
0
        public PlayerDTO ChangeName(string playerId, string name)
        {
            var playerGuid     = Guid.Parse(playerId.Replace(" ", string.Empty));
            var updatingPlayer = this.service.ChangeName(playerGuid, name);

            return(PlayerDTOBuilder.Build(updatingPlayer));
        }
Exemplo n.º 2
0
        public PlayerDTO Create(string name)
        {
            var player = this.service.Create(name);

            return(PlayerDTOBuilder.Build(player));
        }