public Compensation createCompensation(Compensation compensation)

        {
            if (compensation != null && compensation.Employee != null)
            {
                _compensationRepository.createCompensation(compensation);
                _compensationRepository.SaveAsync().Wait();
            }

            return(compensation);
        }