private void GetStatesList()
        {
            StateList?.Clear();

            if (SelectedCountryId.HasValue)
            {
                StateList = AsyncHelper.RunSync <IList <State> >(() => CitySelectorService.
                                                                 GetStates(SelectedCountryId.Value));
            }
        }
Пример #2
0
        private void GetStatesList()
        {
            StateList?.Clear();

            if (SelectedCountryId.HasValue)
            {
                var items = AsyncHelper.RunSync <IList <State> >(() => CitySelectorService.
                                                                 GetStates(SelectedCountryId.Value));
                StateList = items.OrderBy(x => x.Name).ToList();
            }
        }