Exemplo n.º 1
0
        public virtual HashSet <string> GetSelectedFieldsList()
        {
            var hs = new HashSet <string>();

            if (!String.IsNullOrEmpty(Location.CountryCode))
            {
                hs.Add("Location");
            }
            if (BodyBuild.Count > 0 && BodyBuild.Any(p => p > 0))
            {
                hs.Add("BodyBuild");
            }
            if (EyeColor.Count > 0 && EyeColor.Any(p => p > 0))
            {
                hs.Add("EyeColor");
            }
            if (HairColor.Count > 0 && HairColor.Any(p => p > 0))
            {
                hs.Add("HairColor");
            }
            if (Height.Count > 0 && Height.Any(p => p > 0))
            {
                hs.Add("Height");
            }
            if (Age.Count > 0 && Age.Any(p => p > 0))
            {
                hs.Add("Age"); hs.Add("BirthYear");
            }
            if (LookingFor.Count > 0 && LookingFor.Any(p => p > 0))
            {
                hs.Add("LookingFor");
            }
            if (CountryToGo.Count > 0 && CountryToGo.Any(p => !String.IsNullOrWhiteSpace(p)))
            {
                hs.Add("Country");
            }
            if (Language.Count > 0 && Language.Any(p => !String.IsNullOrWhiteSpace(p)))
            {
                hs.Add("Language");
            }
            return(hs);
        }