public async Task <IActionResult> AbrirComandaAsync() { try { var idComanda = await _comandaService.AbrirComandaAsync(); return(StatusCode(200, idComanda)); } catch (Exception ex) { await _logService.InserirLogErroAsync(ex, "ERRO", null); return(StatusCode(500, "Ocorreu um erro ao processar a requisição")); } }