public void DeleteCity(City city)
        {
            System.Diagnostics.Debug.WriteLine("CityDomainService.DeleteCity(" + city.ToString() + ")");

            City cityInList = this._cityData.Cities.FirstOrDefault(c => string.Equals(c.Name, city.Name) &&
                                                                   string.Equals(c.StateName, city.StateName) &&
                                                                   string.Equals(c.CountyName, city.CountyName));

            if (cityInList == null)
            {
                throw new InvalidOperationException("City must be in our list first: " + city);
            }
            this._cityData.Cities.Remove(cityInList);
        }
        public void DeleteCity(City city)
        {
            System.Diagnostics.Debug.WriteLine("CityDomainService.DeleteCity(" + city.ToString() + ")");

            City cityInList = this._cityData.Cities.FirstOrDefault(c => string.Equals(c.Name, city.Name) &&
                                                            string.Equals(c.StateName, city.StateName) &&
                                                            string.Equals(c.CountyName, city.CountyName));
            if (cityInList == null)
            {
                throw new InvalidOperationException("City must be in our list first: " + city);
            }
            this._cityData.Cities.Remove(cityInList);
        }
 public void UpdateCity(City city)
 {
     System.Diagnostics.Debug.WriteLine("CityDomainService.UpdateCity(" + city.ToString() + ")");
     this.DeleteCity(city);
     this._cityData.Cities.Add(city);
 }
 public void UpdateCity(City city)
 {
     System.Diagnostics.Debug.WriteLine("CityDomainService.UpdateCity(" + city.ToString() + ")");
     this.DeleteCity(city);
     this._cityData.Cities.Add(city);
 }