private string LoadLatestScheduleTeams1(int gameID, int eventID) { string strReturn = ""; List <EventGameTeam> eventGameTeamList = new List <EventGameTeam>(); using (PortalDataContext pdc = new PortalDataContext()) { eventGameTeamList = (from egt in pdc.EventGameTeams where egt.GameID == gameID orderby egt.Rank.Value select egt).ToList(); } foreach (EventGameTeam egt in eventGameTeamList) { strReturn += (strReturn == "" ? "" : "<br/>Vs.<br/>") + DALPortal.GetTeamName(egt.TeamID); } return(strReturn); }
private string LoadLatestScheduleTeams(int gameID, int eventID) { string strReturn = ""; List <EventGameTeam> eventGameTeamList = new List <EventGameTeam>(); using (PortalDataContext pdc = new PortalDataContext()) { eventGameTeamList = (from egt in pdc.EventGameTeams where egt.GameID == gameID orderby egt.Rank.Value select egt).ToList(); } foreach (EventGameTeam egt in eventGameTeamList) { strReturn += (strReturn == "" ? "" : "<tr><td style='color:Red;border-color: #FFFFFF;'> <b>Versus </b></td></tr>") + "<tr><td style='border-color: #FFFFFF;font-size:15px; line-height:15px'><b><a href='../Synergy/TeamDetails.aspx?teamid=" + egt.TeamID + "'>" + DALPortal.GetTeamName(egt.TeamID) + "</a></b></td></tr>"; } return("<tr><td style='border-color: #FFFFFF;'><table align='center' style='border-color: #FFFFFF;'>" + strReturn + "</table></td></tr>"); }