Ejemplo n.º 1
0
        public ScheduleModel()
        {
            _scheduleService = new ScheduleService();
            _chamberService  = new ChamberService();

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

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