ctac.GamePlayersModel.GetByPlayerId C# (CSharp) Method

GetByPlayerId() public method

public GetByPlayerId ( int playerId ) : PlayerModel
playerId int
return PlayerModel
        public PlayerModel GetByPlayerId(int playerId)
        {
            return players.FirstOrDefault(x => x.id == playerId);
        }