public IActionResult Delete(Guid id) { try { var newsletter = _newsletterRepository.BuscarPorId(id); if (newsletter == null) { return(NotFound()); } _newsletterRepository.Remover(id); return(Ok(id)); } catch (Exception ex) { return(BadRequest(ex.Message)); } }