public async Task <IActionResult> Get(int id) { try { var flight = await stewardessService.GetEntityAsync(id); return(Ok(flight)); } catch (ValidationException e) { return(BadRequest(new { Exception = e.Message })); } }
public async Task <IActionResult> Get(int id) { try { var flight = await stewardessService.GetEntityAsync(id); return(Ok(flight)); } catch (ValidationException e) { return(BadRequest(new { Exception = e.Message })); } }