public AddAbsenceViewModel(AddAbsenceView absenceView, vwEmployee employee)
 {
     this.absenceView = absenceView;
     Employee         = employee;
     Absence          = new vwAbsence();
     Absence.UserId   = employee.UserId;
 }
 /// <summary>
 /// This method invokes method for opening a window for creating request.
 /// </summary>
 public void AddExecute()
 {
     try
     {
         AddAbsenceView form = new AddAbsenceView(Employee);
         form.ShowDialog();
         AbsencesList = absences.GetEmployeeRequests(Employee);
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.ToString());
     }
 }