// GET: Flight/Create
 public IActionResult Create()
 {
     using (AroundTheWorldContext atw = _context)
     {
         var airportsViewDataDB = new SelectList(atw.Airports.ToList(), "AirportID", "AirportLocation");
         ViewData["AirportLocations"] = airportsViewDataDB;
     }
     return(View());
 }
 public BookingsController(AroundTheWorldContext context)
 {
     _context = context;
 }
Example #3
0
 public TourController(AroundTheWorldContext context)
 {
     _context = context;
 }
 public FlightController(AroundTheWorldContext context)
 {
     _context = context;
 }
Example #5
0
 public HomeController(AroundTheWorldContext context)
 {
     _context = context;
 }
 public DestinationsV1Controller(AroundTheWorldContext db)
 {
     _db = db;
 }
Example #7
0
 public ReviewsV1Controller(AroundTheWorldContext db)
 {
     _db = db;
 }