public async Task <IActionResult> GetidLast() { try { int id = await UserService.TheLastID(); if (id == null) { return(NoContent()); } return(Ok(id)); } catch (Exception ex) { return(this.StatusCode(StatusCodes.Status500InternalServerError, $"Erro ao tentar recuperar a última usuario . Erro: {ex.Message}")); } }