public string RemovePlayer(string id) { string result; if (!String.IsNullOrEmpty(id) && CurrentPlayers.RemoveAll(p => p.PlayerId.Equals(id)) == 1) { result = "Player removed"; } else { result = "Player to remove not found"; } return(result); }