public string HasSportType(int id) { var outStr = string.Empty; var sport = LinkUserSportTypes.Where(x => x.SportTypeID == id).SingleOrDefault(); if (sport != null) { outStr = "checked=\"checked\" "; } return(outStr); }
public string IsLevelSelected(int id, int level) { var outStr = string.Empty; var sport = LinkUserSportTypes.Where(x => x.SportTypeID == id).SingleOrDefault(); if (sport != null) { if (sport.Level == level) { outStr = " selected=\"selected\" "; } } return(outStr); }
public string IsSeasonSelected(int id, int seasonCount) { var outStr = string.Empty; var sport = LinkUserSportTypes.Where(x => x.SportTypeID == id).SingleOrDefault(); if (sport != null) { if (sport.Seasons == seasonCount) { outStr = " selected=\"selected\" "; } } return(outStr); }