Ejemplo n.º 1
0
        public void GetContinentPollution(int id)
        {
            ContinentPollutionDataService continentPollutionDS = new ContinentPollutionDataService();

            ContinentPollution = new ObservableCollection <ContinentPollution>(continentPollutionDS.GetContinentPollution(id));
            ConvertData(ContinentPollution);
        }
Ejemplo n.º 2
0
        public void AddContinentPollution()
        {
            if (CurrentContinentPollution != null)
            {
                ContinentPollutionDataService continentPollutionDS = new ContinentPollutionDataService();

                continentPollutionDS.InsertContinentPollution(CurrentContinentPollution);

                ReadContinentPollution(CurrentContinentPollution.ContinentId);
            }
        }
Ejemplo n.º 3
0
        public void ChangeContinentPollution()
        {
            if (CurrentContinentPollution != null)
            {
                ContinentPollutionDataService continentPollutionDS = new ContinentPollutionDataService();

                continentPollutionDS.UpdateContinentPollution(CurrentContinentPollution);

                ReadContinentPollution(CurrentContinentPollution.ContinentId);
            }
        }