public Compensation getCompensationByEmployeeId(string employeeId) { if (!String.IsNullOrEmpty(employeeId)) { Employee employee = _employeeRepository.GetById(employeeId); Compensation compensation = _compensationRepository.getCompensationByEmployeeId(employeeId); if (compensation != null) { compensation.Employee = employee; } return(compensation); } return(null); }