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