public HRViewModel(MainViewModel mainView)
 {
     //MainView = mainView;
     UpdateView      = new SelectEmployeeCommand(mainView);
     SearchEmployees = new SearchCommand(Search);
     AllEmployees    = webService.GetAllEmployees();
     EmployeeResults = new ObservableCollection <Employees>(AllEmployees);
     //Search("an");
 }
 public EmployeeInformationViewModel(Employees employee, MainViewModel mainVM)
 {
     Employee               = employee;
     AllEmployees           = webService.GetAllEmployees();
     EmploymentTimes        = new ObservableCollection <EmploymentTime>(Employee.EmploymentTime);
     mainViewModel          = mainVM;
     ErrorMessage           = "";
     UpdateCommand          = new EmployeeParameterCommand(UpdateEmployee);
     AddEmployeeTimeCommand = new ParameterVoidCommand(AddEmptyEmployeeTime);
 }