public List <Car> CareDetail() { using (CarDataContext db = new CarDataContext()) { return(db.Cars.ToList()); } }
public ReservationsController(CarDataContext context) { _context = context; }
public CarsController(CarDataContext context) { _context = context; }
public SqlCarRepository() { _context = new CarDataContext(); }