public IActionResult CreateTrainingPlan(CreateTrainingPlanViewModel model)
        {
            var newTrainingPlan = new TrainingPlan()
            {
                UserId           = model.CreatorId,
                CreatedDate      = DateTime.Now,
                TrainingPlanName = model.TrainingPlanName,
                PlanItems        = model.PlanItems.Select(x => new PlanItem()
                {
                    ExerciseId = x.ExerciseId,
                    Reps       = x.Reps,
                    Weight     = x.Weight
                }).ToList()
            };

            _trainingPlanService.AddTrainingPlan(newTrainingPlan, newTrainingPlan.PlanItems);

            return(RedirectToAction("Index", "Home"));
        }