예제 #1
0
        public IActionResult CreatebyCar()
        {
            if (HttpContext.Session.GetString("ID") == null)
            {
                return(RedirectToAction("Login", "Admin"));
            }
            else
            {
                // forward Flight list
                ViewBag.listAllFlights = tourRepository.listAllFlights();

                // forward Tour Guide list
                ViewBag.listAllTourGuides = tourRepository.listAllTourGuides();

                // forward Travel Type list
                ViewBag.listAllTravelTypes = tourRepository.listAllTravelTypes();

                // forward City list
                ViewBag.listAllCities = tourRepository.listAllCities();
                return(View());
            }
        }