Ejemplo n.º 1
0
        public async Task <int> AddEmployeeWFH(EmployeeWFHEntity employeeWFHEntity)
        {
            _logger.LogInformation("Performing Add operation for Employee WFH");
            _logger.LogDebug("Add operation - Payload employeeWFHEntity = " + employeeWFHEntity);
            try
            {
                int recordCreated = await _baseRepository.AddEntityContribAsync(employeeWFHEntity);

                return(recordCreated);
            }
            catch (Exception ex)
            {
                _logger.LogCritical("Exeption occured while performing Add employees WFH operation." + ex);
                throw;
            }
        }