Beispiel #1
0
 public IActionResult Get()
 {
     try
     {
         var result = airport.GetPlanes();
         if (result == null)
         {
             return(NotFound());
         }
         return(Ok(result));
     }
     catch (System.Exception ex)
     {
         return(BadRequest(ex.Message));
     }
 }