public async Task <IActionResult> ExcluirSLASituacao(int id_SLA)
        {
            if (id_SLA < 1)
            {
                return(BadRequest());
            }

            var slaSituacaoToDelete = _configuracaoContext.SLASituacaoItems
                                      .OfType <SLASituacaoItem>()
                                      .SingleOrDefault(c => c.Id_SLA == id_SLA);

            if (slaSituacaoToDelete is null)
            {
                return(BadRequest());
            }

            _configuracaoContext.SLASituacaoItems.Remove(slaSituacaoToDelete);

            //Create Integration Event to be published through the Event Bus
            var SLASituacaoExclusaoEvent = new SLASituacaoExclusaoIE(slaSituacaoToDelete.Id_SLA);

            // Achieving atomicity between original Catalog database operation and the IntegrationEventLog thanks to a local transaction
            await _configuracaoIntegrationEventService.DeleteEventAndSLASituacaoContextChangesAsync(SLASituacaoExclusaoEvent);

            // Publish through the Event Bus and mark the saved event as published
            await _configuracaoIntegrationEventService.PublishThroughEventBusAsync(SLASituacaoExclusaoEvent);

            return(CreatedAtAction(nameof(ExcluirSLASituacao), null));
        }