public async void Execute(object parameter) { try { IEnumerable <Employee> employees = await _apiHelper.GetAllEmployees(); _employeeListViewModel.Employees = new System.Collections.ObjectModel.ObservableCollection <Employee>(employees); } catch (Exception ex) { _employeeListViewModel.Display = System.Windows.Visibility.Visible; _employeeListViewModel.MessageBrush = Brushes.Red; _employeeListViewModel.Message = ex.Message; } }