private void AfterClientSaved(AfterClientSavedEventArgs obj) { var lookupItem = Clients.SingleOrDefault(i => i.Id == obj.Id); if (lookupItem == null) { Clients.Add(new NavigationItemViewModel(obj.Id, obj.DisplayMember, _eventAggregator)); } else { lookupItem.DisplayMember = obj.DisplayMember; } }
private void AfterClientSaved(AfterClientSavedEventArgs obj) { var lookupItem = Clients.Single(l => l.Id == obj.Id); lookupItem.DisplayMember = obj.DisplayMember; }