Beispiel #1
0
        public ScheduleModel()
        {
            _scheduleService = new ScheduleService();
            _chamberService  = new ChamberService();

            ChamberCollection = _chamberService.GetAllByDoctorId(AuthenticatedDoctorUserModel.GetDoctorUserFromIdentity().Id);
        }
Beispiel #2
0
        public bool Add()
        {
            this.ScheduleCollection.ForEach(x =>
            {
                x.ChamberId = this.ChamberId;
                x.DoctorId  = AuthenticatedDoctorUserModel.GetDoctorUserFromIdentity().Id;
            });

            return(_scheduleService.AddRange(this.ScheduleCollection));
        }
Beispiel #3
0
 public IEnumerable <Schedule> GetAllSchedules()
 {
     return(_scheduleService.GetAllByDoctorId(AuthenticatedDoctorUserModel.GetDoctorUserFromIdentity().Id));
 }
Beispiel #4
0
 public IEnumerable <Appointment> GetAllPendingAppointmentByDoctorId(int?lastDays)
 {
     return(_appointmentService.GetAllByDoctorId(
                AuthenticatedDoctorUserModel.GetDoctorUserFromIdentity().Id, (int)CustomEnum.AppointmentStatus.Requested, lastDays));
 }
Beispiel #5
0
 public IEnumerable <Appointment> GetAllByDoctorId(int?status, int?lastDays)
 {
     return(_appointmentService.GetAllByDoctorId(AuthenticatedDoctorUserModel.GetDoctorUserFromIdentity().Id, status, lastDays));
 }
Beispiel #6
0
 public bool IsExist()
 {
     return(AuthenticatedDoctorUserModel.GetDoctorUserFromIdentity() != null);
 }