Ejemplo n.º 1
0
        private void ChangeDepartment()
        {
            var viewModel = new ChangeDepartmentViewModel();

            if (_dialogService.ShowDialog(viewModel) == true)
            {
                _employee.Department = _departmentRepository.GetById(viewModel.SelectedDepartment.Id);
                Notify(() => DepartmentName);
            }
        }
        private void ChangeDepartment()
        {
            var viewModel = new ChangeDepartmentViewModel();

            if (_dialogService.ShowDialog(viewModel) == true)
            {
                _employee.Department = _departmentRepository.GetById(viewModel.SelectedDepartment.Id);
                Notify(() => DepartmentName);
            }
        }