public ScheduleListViewModel() { ScheduleDataRepository sdr = new ScheduleDataRepository(); IEnumerable <Schedule> schedules = sdr.Get(); Schedules = new ObservableCollection <Schedule>(); }
public ScheduleController() { dbContext = new CaremeDBContext(); scheduleRepo = new ScheduleDataRepository(dbContext); // scheduleRepo = new ScheduleRepository(dbContext); doctorRepo = new DoctorRepository(dbContext); }
public ScheduleController(IScheduleService iScheduleService, IScheduleDelService iScheduleDelService) { this.iScheduleDelService = iScheduleDelService; this.iScheduleService = iScheduleService; dbContext = new CaremeDBContext(); scheduleRepo = new ScheduleRepository(dbContext); hospitalRepo = new HospitalRepository(dbContext); scheduleDataRepo = new ScheduleDataRepository(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); }
public BookingController() { dbContext = new CaremeDBContext(); doctorRepo = new DoctorRepository(dbContext); scheduledataRepo = new ScheduleDataRepository(dbContext); }