public async Task <ActionResult> GetCompte() { try { return(Ok(await compteRepository.GetComptes())); } catch (Exception) { return(StatusCode(StatusCodes.Status500InternalServerError, "Error retrieving data from the database")); } }