public List<Exercise> GetAllExerciseData()
 {
     using (var dataContext = new HealthAnalyserEntities())
     {
         return dataContext.Exercise.OrderBy(e => e.Date).ToList();
     }
 }
 public List<WeightGoal> GetAllWeightGoalData()
 {
     using (var dataContext = new HealthAnalyserEntities())
     {
         return dataContext.WeightGoal.OrderBy(e => e.Date).ToList();
     }
 }
 public List<SleepData> GetAllSleepData()
 {
     using (var dataContext = new HealthAnalyserEntities())
     {
         return dataContext.SleepData.OrderBy(s => s.SleepingDateTime).ToList();
     }
 }
 public List<BloodPressure> GetAllBloodPressureData()
 {
     using (var dataContext = new HealthAnalyserEntities())
     {
         return dataContext.BloodPressure.OrderBy(e => e.Date).ToList();
     }
 }