public void AddClient() { var result = _navigationService.GetWindow <ClientDetailsViewModel>().ShowWindowModal(); if (result) { Task.Run(() => { using (var dbService = _dbServiceManager.GetService()) { var clients = dbService.Clients.GetAll(); var newClients = clients.Except(AllClients, new IdRecordComparator <Client>()).ToList(); AllClients.AddRange(newClients); Clients = new BindableCollection <Client>(AllClients); SelectedClient = newClients.FirstOrDefault(); } }); } }