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);
 }
Esempio n. 3
0
 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);
 }
Esempio n. 4
0
 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);
 }
Esempio n. 5
0
 public BookingController()
 {
     dbContext        = new CaremeDBContext();
     doctorRepo       = new DoctorRepository(dbContext);
     scheduledataRepo = new ScheduleDataRepository(dbContext);
 }