public BestellingController(IConfiguration config) { BestellingContext = new BestellingMSSQLContext(config.GetConnectionString("DefaultConnection")); GerechtContext = new GerechtMSSQLContext(config.GetConnectionString("DefaultConnection")); BestellingRepo = new BestellingRepository(BestellingContext, GerechtContext); GerechtRepo = new GerechtRepository(GerechtContext); }
public GerechtController(IConfiguration config) { context = new GerechtMSSQLContext(config.GetConnectionString("DefaultConnection")); repo = new GerechtRepository(context); }