public void CancelChanges(object param)
        {
            System.Windows.MessageBoxResult res = System.Windows.MessageBox.Show("Вы действительно хотите отменить изменения?", "Внимание, вопрос", System.Windows.MessageBoxButton.YesNoCancel, System.Windows.MessageBoxImage.Question);

            if (res == System.Windows.MessageBoxResult.Cancel ||
                res == System.Windows.MessageBoxResult.No)
            {
                return;
            }

            _realtor = AgencyModel.GetRealtor(_realtor.ID);
            OnProperyChanged(String.Empty); // update all bindings
        }
 public RealtorViewModel(int?id)
 {
     IsNotSaved = false;
     _realtor   = AgencyModel.GetRealtor(id);
 }