public IActionResult Abrir() { try { return(Ok(_IPedido.Abrir())); } catch (Exception ex) { return(BadRequest(new Error(HttpStatusCode.InternalServerError, "Pedido.Abrir()", ex.Message))); } }