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