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(); }
public void Update(CityEntity city) { _connection.Update(city); }
public void Insert(CityEntity city) { _connection.Insert(city); }
public void Delete(CityEntity city) { _connection.Delete(city); }