public void OnNavigatedFrom(NavigationContext navigationContext)
 {
     this.eventAggregator.Unsubscribe<SaveEvent>(this.Save);
     this.eventAggregator.Unsubscribe<EntitySelectedEvent>(this.EntitySelected);
     this.Party = new PartyViewModel(this.eventAggregator);
 }
 public void Sorting()
 {
     this.SelectedParty = null;
 }
 private void Save(SaveEvent saveEvent)
 {
     this.entityService.ExecuteAsync(
         () => this.entityService.Create(this.Party.Model()),
         () => { this.Party = new PartyViewModel(this.eventAggregator); },
         string.Format(Message.EntityAddedFormatString, "Party"),
         this.eventAggregator);
 }