예제 #1
0
        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();
        }
예제 #2
0
        public MainViewModel()
        {
            var repository = new AtmRepository();
            var atmMachine = repository.GetById(1);
            var viewModel  = new AtmViewModel(atmMachine);

            _dialogService.ShowDialog(viewModel);
        }