/// <summary> /// Removes existing contact /// </summary> /// <param name="contact">Contact that is be destroyed</param> public void RemoveExistingContact(ContactViewModel contact) { this.PeopleViewModel.Remove.Execute(contact); }
/// <summary> /// Hydrates the add user view model with the contact that is /// to be edited and sets its mode to edit mode from save. /// </summary> /// <param name="selectedContact">The selected contact to /// be edited</param> public void EditExistingContact(ContactViewModel selectedContact) { this.PersonPreview = selectedContact; this._FullName = this.PersonPreview.FullName; this.Caption = ViewNames.EDIT_PERSON; }