public HospitalController(IPhoto iPhoto) { this.iPhoto = iPhoto; dbContext = new CaremeDBContext(); hospitalRepo = new HospitalRepository(dbContext); docHosRepo = new DoctorHospitalRepository(dbContext); }
public DoctorController(IPhoto iPhoto, IQueryService iQueryService) { this.iPhoto = iPhoto; this.iQueryService = iQueryService; dbContext = new CaremeDBContext(); doctorRepo = new DoctorRepository(dbContext); doctorhospitalRepo = new DoctorHospitalRepository(dbContext); scheduleRepo = new ScheduleRepository(dbContext); scheduledataRepo = new ScheduleDataRepository(dbContext); }