public PerronController(IConfiguration configuration) { context = new MSSQLPerronContext(configuration.GetConnectionString("DefaultConnection")); stationContext = new MSSQLStationContext(configuration.GetConnectionString("DefaultConnection")); repo = new PerronRepository(context); stationRepo = new StationRepository(stationContext); converter = new PerronViewModelConverter(); stationConverter = new StationViewModelConverter(); }
public PerronRepository(IPerronContext context) { Context = context; }