public static string TeamIdToName(int teamId) { if (TeamIdToNameMaster.ContainsKey(teamId)) { return(TeamIdToNameMaster[teamId]); } return("Unknown"); }
public static int TeamNameToId(string teamName) { if (TeamIdToNameMaster.ContainsValue(teamName)) { return (TeamIdToNameMaster.First(kvp => string.Compare(kvp.Value, teamName, StringComparison.InvariantCultureIgnoreCase) == 0).Key); } return(-1); }