public ActionResult <IEnumerable <Carro> > Get() { try { _logger.LogInformation("Received get request"); return(Ok(_carroService.List())); } catch (Exception exception) { _logger.LogError(exception, exception.Message); return(new StatusCodeResult(500)); } }