public IActionResult Submit(AircraftViewModel parameter)
        {
            _logger.LogDebug("Submiting aircraft");

            if (_aircraftRepository.GetAircraftById(parameter.SelectedAircraft.Id) != null)
            {
                _logger.LogDebug("Aircraft Id already exist");
                _aircraftRepository.UpdateAircraft(parameter.SelectedAircraft);
            }
            else
            {
                _aircraftRepository.CreateAircraft(parameter.SelectedAircraft);
            }

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