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)); }
public PlayerDTO Create(string name) { var player = this.service.Create(name); return(PlayerDTOBuilder.Build(player)); }