void remvoeCity(int index)
        {
            CityEntity city = Cites[index];

            _dataService.Delete(city);
            Cites = _dataService.Cities();
        }
        void updateCity(int index)
        {
            CityEntity city = Cites[index];

            _dataService.Update(city);

            Cites = _dataService.Cities();
        }
        void insertCity()
        {
            CityEntity newCity = new CityEntity();

            newCity.Name = _createCityViewModel.Name;
            _dataService.Insert(newCity);
            Cites = _dataService.Cities();
        }
Ejemplo n.º 4
0
 public void Update(CityEntity city)
 {
     _connection.Update(city);
 }
Ejemplo n.º 5
0
 public void Insert(CityEntity city)
 {
     _connection.Insert(city);
 }
Ejemplo n.º 6
0
 public void Delete(CityEntity city)
 {
     _connection.Delete(city);
 }