Beispiel #1
0
        public IActionResult Post([FromBody] StewardessDTO value)
        {
            try
            {
                if (ModelState.IsValid)
                {
                    airport.CreateStewardess(value);

                    return(Ok());
                }
                return(BadRequest());
            }
            catch (System.Exception ex)
            {
                return(BadRequest(ex.Message));
            }
        }