public void Update(Player updatedPlayer) { var player = this.Get(updatedPlayer.Id); player.Name = updatedPlayer.Name; player.Rank = updatedPlayer.Rank; player.SkillLevel = updatedPlayer.SkillLevel; }
public void Post(Player player) { player.Id = nextPlayerID++; players.Add(player); }