示例#1
0
        public override bool ContainsSearchExp(string exp)
        {
            if (string.IsNullOrWhiteSpace(exp))
            {
                return(true);
            }

            if (!string.IsNullOrWhiteSpace(CityName) && CityName.Contains(exp))
            {
                return(true);
            }

            if (!string.IsNullOrWhiteSpace(Location) && Location.Contains(exp))
            {
                return(true);
            }

            return(false);
        }