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(); }
public MainViewModel() { var repository = new AtmRepository(); var atmMachine = repository.GetById(1); var viewModel = new AtmViewModel(atmMachine); _dialogService.ShowDialog(viewModel); }