public bool AddUserContact(Contact contactToEdit, out Contact contactReturned) { _vm = DataContext as EditAgriUserContactViewModel; _vm.Setup(contactToEdit); ShowDialog(); contactReturned = _vm.Contact; return DialogResult != null && (bool) DialogResult; }