public IActionResult Create() { var model = new CreateViewModel { StartAirports = _airportRepository.GetStartingAirports(), EndAirports = _airportRepository.GetEndAirports(0), FlightCompanies = _partnerRepository.GetAllFlightCompanies(), FlightStart = DateTime.ParseExact(DateTime.Now.ToString("yyyy-MM-dd HH:mm"), "yyyy-MM-dd HH:mm", null), FlightEnd = DateTime.ParseExact(DateTime.Now.ToString("yyyy-MM-dd HH:mm"), "yyyy-MM-dd HH:mm", null).AddHours(1), }; return(View(model)); }