private void ShowAtm(AtmDto atmDto)
        {
            Atm atm = _atmRepository.GetById(atmDto.Id);

            if (atm == null)
                return;

            _dialogService.ShowDialog(new AtmViewModel(atm, _atmRepository, _eventDispatcher));
            RefreshAll();
        }
        private void LoadCashToAtm(AtmDto atmDto)
        {
            Atm atm = _atmRepository.GetById(atmDto.Id);

            if (atm == null)
                return;

            HeadOffice.LoadCashToAtm(atm);
            _atmRepository.Save(atm);
            _headOfficeRepository.Save(HeadOffice);

            RefreshAll();
        }
 private bool CanLoadCashToAtm(AtmDto atmDto)
 {
     return atmDto != null && HeadOffice.Cash.Amount > 0;
 }