Exemplo n.º 1
0
        void UpdateStadiumGrid()//Bieda update , czysci grida i od nowa laduje
        {
            var s = stadiumService.GetAllStadium();

            stadium.Clear();
            foreach (Stadium item in s)
            {
                stadium.Add(new StadiumViewModel {
                    ID = item.id, Name = item.name, City = item.city, Country = item.country
                });
            }
        }