public int updateDailyRoutine(DailyRoutine DR)
        {
            IAdherenceDailyRoutineRepository dailyRoutineRepository = new AdherenceDailyRoutineRepository();

            dailyRoutineRepository.updateDailyRoutine(DR);
            return(DR.Id);
        }
        public List <DailyRoutine> getDailyRoutine(int personId, int patientMasterVisitId)
        {
            IAdherenceDailyRoutineRepository dailyRoutineRepository = new AdherenceDailyRoutineRepository();
            var dailyRoutineList = dailyRoutineRepository.GetAll().Where(x => x.PatientId == personId && x.PatientMasterVisitId == patientMasterVisitId).OrderBy(x => x.Id);

            return(dailyRoutineList.ToList());
        }