private void SetSalaryCommandExecute()
 {
     try
     {
         bool isInProperRange = salary > 1 && salary < 1001;
         if (isInProperRange == false)
         {
             MessageBox.Show("Salary must be in range between 2 and 1000. Please try again.", "Invalid input");
             return;
         }
         double?workExperianceQuotient = 0.75d * manager.WorkExperience;
         //Debug.WriteLine("workExperianceQuotient: " + workExperianceQuotient);
         int?   levelOfEducation         = GetLevelOfEducation(manager.LevelOfEducation);
         double?levelOfEducationQuotient = 0.15d * levelOfEducation;
         //Debug.WriteLine("levelOfEducationQuotient: " + levelOfEducationQuotient);
         double?genderQuotient = GetGenderQuotient(employee.Gender);
         //Debug.WriteLine("genderQuotient: " + genderQuotient);
         //Debug.WriteLine("Salary: " + salary);
         decimal?totalSalary = (decimal?)(1000 * workExperianceQuotient * levelOfEducationQuotient * genderQuotient + salary);
         if (totalSalary != null)
         {
             employee.Salary = totalSalary;
             dataBaseService.EditEmployeeSalary(employee);
             IsUpdateSalary = true;
             MessageBox.Show("Salary set successfull.", "Info");
             setSalaryView.Close();
         }
         else
         {
             MessageBox.Show("Error setting salary.", "Info");
         }
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.ToString());
     }
 }