Example #1
0
        private bool IsCityExists(City newCity)
        {
            City aCity = aCityGateway.GetCityByName(newCity.Name);

            if (aCity != null)
            {
                return(true);
            }
            return(false);
        }
Example #2
0
        public bool IsCityNameExist(string cityName)
        {
            bool isCityNameExist = false;
            City city            = cityGateway.GetCityByName(cityName);

            if (city != null)
            {
                isCityNameExist = true;
            }
            return(isCityNameExist);
        }