private void EditEmployee(EmployeeDto employeeDto)
        {
            Employee employee  = _repository.GetById(employeeDto.Id);
            var      viewModel = new ExistingEmployeeViewModel(employee);

            if (_dialogService.ShowDialog(viewModel) == true)
            {
                int index = Employees.IndexOf(employeeDto);
                Employees[index] = _repository.GetEmployeeDto(viewModel.Employee.Id);
            }
        }
        private void EditEmployee(EmployeeDto employeeDto)
        {
            Employee employee = _repository.GetById(employeeDto.Id);
            var viewModel = new ExistingEmployeeViewModel(employee);

            if (_dialogService.ShowDialog(viewModel) == true)
            {
                int index = Employees.IndexOf(employeeDto);
                Employees[index] = _repository.GetEmployeeDto(viewModel.Employee.Id);
            }
        }