public async void LoadData() { IsBusy = true; var enquiryStatuses = await _adminDataUnit.EnquiryStatusesRepository.GetAllAsync(); EnquiryStatuses = new ObservableCollection <EnquiryStatus>(enquiryStatuses.OrderBy(x => x.Status)); var users = await _adminDataUnit.UsersRepository.GetUsersAsync(); Users = new ObservableCollection <User>(users.OrderBy(x => x.FirstName)); // Load default settigns _adminDataUnit.DefaultSettingsForEnquiriesRepository.Refresh(); var settings = await _adminDataUnit.DefaultSettingsForEnquiriesRepository.GetAllAsync(); DefaultSettings = settings.ToList(); DefaultSetting = DefaultSettings.FirstOrDefault() ?? new DefaultSettingsForEnquiry() { ID = Guid.NewGuid() }; User = DefaultSetting.User; EnquiryStatus = DefaultSetting.EnquiryStatus; DefaultSetting.PropertyChanged += OnPropertyChanged; _isDataLoadedOnce = true; IsBusy = false; }