public PatientsController(IConfiguration _config) { config = _config; DentistsDAO = new DentistsDAO(config.GetSection("DB").GetSection("ConnectionString").Value); ProceduresDAO = new ProceduresDAO(config.GetSection("DB").GetSection("ConnectionString").Value); DiseasesDAO = new DiseasesDAO(config.GetSection("DB").GetSection("ConnectionString").Value); PatientsDAO = new PatientsDAO(config.GetSection("DB").GetSection("ConnectionString").Value); PatientRecordDAO = new PatientRecordDAO(config.GetSection("DB").GetSection("ConnectionString").Value); }
public DashboardController(IConfiguration _config) { config = _config; DentistsDAO = new DentistsDAO(config.GetSection("DB").GetSection("ConnectionString").Value); PatientsDAO = new PatientsDAO(config.GetSection("DB").GetSection("ConnectionString").Value); }
public DentistController(IConfiguration _config) { config = _config; DentistsDAO = new DentistsDAO(config.GetSection("DB").GetSection("ConnectionString").Value); UsersDAO = new UsersDAO(config.GetSection("DB").GetSection("ConnectionString").Value); }