예제 #1
0
 public async Task <IActionResult> GetByIataCode(string iataCode)
 {
     //TODO : Add exception handling middlware
     try
     {
         return(Ok(await _airportsService.GetByIataCodeAsync(iataCode)));
     }
     catch (Exception e)
     {
         return(BadRequest(e.Message));
     }
 }