예제 #1
0
        public ActionResult CreatePlan(Plan CreatePlan)
        {
            int trainerID = ((int)Session[SessionKeys.Trainer_ID]);

            CreatePlan.ByTrainer = ((int)Session[SessionKeys.Trainer_ID]);
            int planId = _workoutDal.CreatePlan(CreatePlan);

            return(RedirectToAction("Workouts", new { planId = planId }));
        }