public ScheduleModel() { _scheduleService = new ScheduleService(); _chamberService = new ChamberService(); ChamberCollection = _chamberService.GetAllByDoctorId(AuthenticatedDoctorUserModel.GetDoctorUserFromIdentity().Id); }
public bool Add() { this.ScheduleCollection.ForEach(x => { x.ChamberId = this.ChamberId; x.DoctorId = AuthenticatedDoctorUserModel.GetDoctorUserFromIdentity().Id; }); return(_scheduleService.AddRange(this.ScheduleCollection)); }
public IEnumerable <Schedule> GetAllSchedules() { return(_scheduleService.GetAllByDoctorId(AuthenticatedDoctorUserModel.GetDoctorUserFromIdentity().Id)); }
public IEnumerable <Appointment> GetAllPendingAppointmentByDoctorId(int?lastDays) { return(_appointmentService.GetAllByDoctorId( AuthenticatedDoctorUserModel.GetDoctorUserFromIdentity().Id, (int)CustomEnum.AppointmentStatus.Requested, lastDays)); }
public IEnumerable <Appointment> GetAllByDoctorId(int?status, int?lastDays) { return(_appointmentService.GetAllByDoctorId(AuthenticatedDoctorUserModel.GetDoctorUserFromIdentity().Id, status, lastDays)); }
public bool IsExist() { return(AuthenticatedDoctorUserModel.GetDoctorUserFromIdentity() != null); }