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 })); }