private bool IsCityExists(City newCity)
        {
            City aCity = aCityGateway.GetCityByName(newCity.Name);

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

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