Exemplo n.º 1
0
        public IActionResult Post([FromBody] StewardessDTO stewardess)
        {
            if (!ModelState.IsValid)
            {
                return(BadRequest(ModelState));
            }
            var result = _service.Add(stewardess);

            return(result == true?StatusCode(200) : StatusCode(500));
        }