public void GetCountryPollution(int id) { CountryPollutionDataService countryPollutionDS = new CountryPollutionDataService(); CountryPollution = new ObservableCollection <CountryPollution>(countryPollutionDS.GetCountryPollution(id)); ConvertData(CountryPollution); }
public void ChangeCountryPollution() { if (CurrentCountryPollution != null) { CountryPollutionDataService countryPollutionDS = new CountryPollutionDataService(); countryPollutionDS.UpdateCountryPollution(CurrentCountryPollution); ReadCountryPollution(CurrentCountryPollution.CountryId); } }
public void AddCountryPollution() { if (CurrentCountryPollution != null) { CountryPollutionDataService countryPoluttionDS = new CountryPollutionDataService(); countryPoluttionDS.InsertCountryPollution(CurrentCountryPollution); ReadCountryPollution(CurrentCountryPollution.CountryId); } }