//This function will load the Regular Fitness details of the user on loading the dashboard public AgeGrpWorkoutDO HelperRegularFitness(int age) { AgeGrpWorkoutBL ageGrpWorkoutBL = new AgeGrpWorkoutBL(); AgeGrpWorkoutDO ageGrpWorkout = ageGrpWorkoutBL.GetAgrGrpWorkout(age); return(ageGrpWorkout); }
//This function will load the regular fitness of the user on loading the dashboard public void RegularFitnessHelper() { AgeGrpWorkoutBL ageGrpWorkoutBL = new AgeGrpWorkoutBL(); AgeGrpWorkoutDO ageGrpWorkout = Session["ageGrpWorkout"] as AgeGrpWorkoutDO; int currentPlan = Convert.ToInt32(ageGrpWorkout.Workout_Plan.Last().ToString()); string newPlanWorkout = ageGrpWorkoutBL.getModifiedPlan(0, Convert.ToInt32(ageGrpWorkout.Calories), currentPlan); ViewBag.Workout = "https://www.youtube.com/embed/" + newPlanWorkout; }