public IActionResult Post([FromBody] StewardessDTO stewardessDTO) { if (!ModelState.IsValid) { return(BadRequest(ModelState)); } try { stewardessService.CreateEntity(stewardessDTO); } catch (ValidationException e) { return(BadRequest(new { Exception = e.Message })); } return(Ok(stewardessDTO)); }