Ejemplo n.º 1
0
        //Creates a compensation and saves it to the database
        public Compensation Create(Compensation compensation)
        {
            if (compensation != null)
            {
                _compensationRepository.CreateCompensation(compensation);
                _compensationRepository.SaveAsync().Wait();
            }

            return(compensation);
        }