Esempio 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));
        }
Esempio n. 2
0
        public PlayerDTO Create(string name)
        {
            var player = this.service.Create(name);

            return(PlayerDTOBuilder.Build(player));
        }