public static SelectList ListFlightInfo(ZW.MyAirport.EF.MyAirportContext context) { var flights = context.Flights .Select(f => new { f.FLIGHTID, Description = $"{f.CIE} {f.LIG} : {f.DHC.ToShortDateString()}" }).ToList(); return(new SelectList(flights, "FLIGHTID", "Description")); }
public DetailsModelFlight(ZW.MyAirport.EF.MyAirportContext context) { _context = context; }
public EditModelFlight(ZW.MyAirport.EF.MyAirportContext context) { _context = context; }
public DeleteModelLuggage(ZW.MyAirport.EF.MyAirportContext context) { _context = context; }
public IndexModelFlight(ZW.MyAirport.EF.MyAirportContext context) { _context = context; }
public CreateModelFlight(ZW.MyAirport.EF.MyAirportContext context) { _context = context; }
public EditModelLuggage(ZW.MyAirport.EF.MyAirportContext context) { _context = context; }