public IActionResult Get(int id) { try { var flight = stewardessService.GetEntity(id); return(Ok(flight)); } catch (ValidationException e) { return(BadRequest(new { Exception = e.Message })); } }
public IActionResult Get(int id) { try { var flight = stewardessService.GetEntity(id); return(Ok(flight)); } catch (ValidationException e) { return(BadRequest(new { Exception = e.Message })); } }