コード例 #1
0
        private async Task LoadCitiesAsync()
        {
            IsBusy = true;

            var result = await _cityService.GetAll();

            if (result != null)
            {
                Cities = new ObservableCollection <City>(result);
            }

            IsBusy = false;
        }