public IActionResult GetAll() { try { return(Ok(_converter.Parser(Carrinho.FindAll()))); } catch (MercurioCoreException ex) { return(StatusCode(400, new ErrorClass(400, ex.Message, DateTime.Now))); } catch (DBConnectionException ex) { return(StatusCode(500, new ErrorClass(500, ex.Message, DateTime.Now))); } }