// GET: AircraftSchedule public ActionResult AboutUs_ViewFlightSchedule() { // Stop accessing the action if not logged in // or account not in the "Customer" role if ((HttpContext.Session.GetString("Role") == null) || (HttpContext.Session.GetString("Role") != "Customer")) { return(RedirectToAction("Index", "Home")); } string from = HttpContext.Session.GetString("from"); string to = HttpContext.Session.GetString("to"); List <Aircraftschedule> aircraftscheduleList = CustomerContext.AboutUSGetAllAircraftSchedule(from, to); return(View(aircraftscheduleList)); }