public IActionResult Delete(int?selectId)
        {
            _logger.LogDebug($"Deleting flight {selectId}");
            if (selectId.HasValue)
            {
                _aircraftRepository.DeleteAircraft(selectId.Value);
            }
            else
            {
                _logger.LogWarning("Aircraft to delete doesn't exist");
            }

            return(new RedirectToActionResult("List", "Aircraft", null));
        }