Exemplo n.º 1
0
 public ActionResult <SimulationResult> Get(string fromiATA, string toiATA, string aircraftModel)
 {
     try
     {
         return(simulationService.SimulateFlight(fromiATA, toiATA, aircraftModel));
     }
     catch (Exception ex)
     {
         logger.LogError(1, ex, "Get Aircrafts");
         return(BadRequest(ex.Message));
     }
 }