public IActionResult Post([FromBody] StewardessDTO stewardess) { if (!ModelState.IsValid) { return(BadRequest(ModelState)); } var result = _service.Add(stewardess); return(result == true?StatusCode(200) : StatusCode(500)); }