public void GetContinentPollution(int id) { ContinentPollutionDataService continentPollutionDS = new ContinentPollutionDataService(); ContinentPollution = new ObservableCollection <ContinentPollution>(continentPollutionDS.GetContinentPollution(id)); ConvertData(ContinentPollution); }
public void AddContinentPollution() { if (CurrentContinentPollution != null) { ContinentPollutionDataService continentPollutionDS = new ContinentPollutionDataService(); continentPollutionDS.InsertContinentPollution(CurrentContinentPollution); ReadContinentPollution(CurrentContinentPollution.ContinentId); } }
public void ChangeContinentPollution() { if (CurrentContinentPollution != null) { ContinentPollutionDataService continentPollutionDS = new ContinentPollutionDataService(); continentPollutionDS.UpdateContinentPollution(CurrentContinentPollution); ReadContinentPollution(CurrentContinentPollution.ContinentId); } }