Пример #1
0
        public async Task UpdateListAsync()
        {
            var newCollection = new ObservableCollection <Pilot>(await _pilotService.GetAsync());

            Pilots.Clear();
            foreach (var item in newCollection)
            {
                Pilots.Add(item);
            }
        }