public PgSQLController(IOptions <AppSettings> appSettings) { _appSettings = appSettings.Value; _context = new StaffMasterRepository(_appSettings.ConnPgSQL); //Cant use DI when more than one db uses the same interface -> IStaffMasterRepository }
public MsSQLController(IStaffMasterRepository context) { _context = context; }