コード例 #1
0
 public async Task <IActionResult> Get()
 {
     try
     {
         return(new ObjectResult(await _supervisor.GetAllAddressAsync()));
     }
     catch (Exception ex)
     {
         _logger.LogError(ex, "Exception: ");
         return(StatusCode(500, ex));
     }
 }