public IActionResult Post([FromBody] FlightDTO flight)
        {
            if (!ModelState.IsValid)
            {
                return(BadRequest(ModelState));
            }
            var result = _service.AddObject(flight);

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