public async Task <IActionResult> Post([FromBody] FlightDto dto)
        {
            try
            {
                var createdId = await _flightsService.AddAsync(dto);

                return(CreatedAtAction("Get",
                                       await _flightsService.GetByIdAsync(createdId)));
            }
            catch (ValidationException ex)
            {
                return(BadRequest(ex.Errors));
            }
            catch (NullBodyException)
            {
                return(BadRequest());
            }
            catch (DbUpdateException ex)
            {
                return(BadRequest(ex.InnerException.Message));
            }
        }