コード例 #1
0
        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);
        }
コード例 #2
0
        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);
        }
コード例 #3
0
        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);
        }