private void listRoutesBetweenCities(IFlightBLL flightBLL, string start, string end)
        {
            List <Route> lst = flightBLL.getFlightsBetweenCities(start, end);

            if (lst != null)
            {
                Console.WriteLine("------ Listing routes between " + start + " and " + end + " ----- ");
                foreach (Route d in lst)
                {
                    Console.WriteLine(d.RouteID + " - Starts From - " + d.StartCity + ", Ends At - " + d.EndCity + ", Time - " + d.FlightTime + ", Adult/Child Fare - " + d.AdultFare + "/" + d.ChildFare);
                }
                Console.WriteLine("-------------------------------------------------------------------------------");
                Console.WriteLine("\n");
            }
            else
            {
                Console.WriteLine("No Routes in the database !!!");
            }
        }
        private void listAllFlights(IFlightBLL flightBLL, string start, string end)
        {
            List <Route> lst = flightBLL.getFlightsBetweenCities(start, end);

            if (lst != null)
            {
                var fl = (from r in lst
                          select r.Flight.FlightID).Distinct();
                if (fl != null)
                {
                    foreach (string s in fl.ToArray())
                    {
                        Console.WriteLine(s);
                    }
                }
            }
            else
            {
                Console.WriteLine("No flights found");
            }
        }
 private void listAllFlights(IFlightBLL flightBLL, string start, string end)
 {
     List<Route> lst = flightBLL.getFlightsBetweenCities(start, end);
      if (lst != null)
      {
          var fl = (from r in lst
                    select r.Flight.FlightID).Distinct();
          if (fl != null)
          {
              foreach (string s in fl.ToArray())
              {
                  Console.WriteLine(s);
              }
          }
      }
      else
      {
          Console.WriteLine("No flights found");
      }
 }
 private void listRoutesBetweenCities(IFlightBLL flightBLL, string start, string end)
 {
     List<Route> lst = flightBLL.getFlightsBetweenCities(start, end);
     if (lst != null)
     {
         Console.WriteLine("------ Listing routes between " + start + " and " + end + " ----- ");
         foreach (Route d in lst)
         {
             Console.WriteLine(d.RouteID + " - Starts From - " + d.StartCity + ", Ends At - " + d.EndCity + ", Time - " + d.FlightTime + ", Adult/Child Fare - " + d.AdultFare + "/" + d.ChildFare);
         }
         Console.WriteLine("-------------------------------------------------------------------------------");
         Console.WriteLine("\n");
     }
     else
     {
         Console.WriteLine("No Routes in the database !!!");
     }
 }