Exemplo n.º 1
0
        public ActionResult ViewWorkOutPlan(int id)
        {
            WorkOutPlan_BLL workoutbll = new WorkOutPlan_BLL();

            WorkoutPlan wp = workoutbll.getWorkPlanDetails(id);

            return(View(wp));
        }
Exemplo n.º 2
0
        public ActionResult EditWorkoutPlan(int planId)
        {
            WorkOutPlan_BLL workoutbll  = new WorkOutPlan_BLL();
            WorkoutPlan     workoutPlan = workoutbll.getWorkPlanDetails(planId);

            Session["WorkoutSetList"] = workoutPlan.WorkoutSet;
            Session["WorkoutPlanId"]  = planId;
            return(View(workoutPlan));
        }
Exemplo n.º 3
0
        public ActionResult PrintWorkoutPlan(int planId)
        {
            WorkOutPlan_BLL workoutbll  = new WorkOutPlan_BLL();
            WorkoutPlan     workoutPlan = new WorkoutPlan();

            workoutPlan = workoutbll.getWorkPlanDetails(planId);

            if (workoutPlan != null)
            {
                PrintToPDF printToPdf = new PrintToPDF();
                printToPdf.PrintWorkoutPlan(workoutPlan);
            }
            else
            {
                //TO-DO: return error
            }


            return(View());
        }