예제 #1
0
 public IActionResult Get(int id)
 {
     try
     {
         var flight = planeService.GetEntity(id);
         return(Ok(flight));
     }
     catch (ValidationException e)
     {
         return(BadRequest(new { Exception = e.Message }));
     }
 }