public async Task <TrainingPlanContext> UpdateTrainingPlan(TrainingPlanContext trainingPlanctx)
        {
            if (null == trainingPlanctx)
            {
                return(null);
            }
            TrainingPlan trainingPlan = trainingPlanctx.ConvertToTrainingPlan(false);
            var          result       = await TrainingPlanEntityService.Update(trainingPlan);

            return(result.ConvertToTrainingPlanContext());
        }
        //TODO: Create Exercises/update exercises methods.

        public async Task <bool> DeleteTrainingPlan(TrainingPlanContext trainingPlanctx)
        {
            if (null == trainingPlanctx)
            {
                return(false);
            }
            TrainingPlan trainingPlan = trainingPlanctx.ConvertToTrainingPlan(false);
            var          result       = await TrainingPlanEntityService.Delete(trainingPlan.Id.ToString());

            return(result);
        }
        public async Task <bool> CreateTrainingPlan(TrainingPlanContext trainingPlanctx)
        {
            if (null == trainingPlanctx)
            {
                return(false);
            }
            TrainingPlan trainingPlan = trainingPlanctx.ConvertToTrainingPlan(true);
            var          result       = await TrainingPlanEntityService.CreateTrainingPlan(trainingPlan);

            return(result);
        }