// GET: ProduitController public ProduitsController() { ctx = new dbtirelireshopContext(); repoProduit = new Repository <Produits>(ctx); }
// GET: CouleurController public CouleursController() { ctx = new dbtirelireshopContext(); repoCouleur = new Repository<Couleur>(ctx); }
// GET: CommandesController public StatutCommandesController() { ctx = new dbtirelireshopContext(); repoStatutCommande = new Repository <StatutCommande>(ctx); }
// GET: CommandesController public CommandesController() { ctx = new dbtirelireshopContext(); repoCommande = new Repository <Commandes>(ctx); }
public Repository(dbtirelireshopContext context) { _context = context; }
// GET: ClientController public ClientsController() { ctx = new dbtirelireshopContext(); repoClient = new Repository <Clients>(ctx); }