public async Task <IActionResult> Patch(string workoutName, WorkoutPlanModel request, CancellationToken token)
        {
            await _mediator.Send(new UpdateWorkoutPlanCommand
            {
                WorkoutName = workoutName,
                UserId      = User.Claims.Single(x => x.Type == "Id").Value,
                Exercises   = request.Exercises
            },
                                 token);

            return(Ok());
        }
        public async Task <IActionResult> Post(WorkoutPlanModel request, CancellationToken token)
        {
            await _mediator.Send(new CreateWorkoutPlanCommand()
            {
                UserId      = User.Claims.Single(x => x.Type == "Id").Value,
                Name        = request.Name,
                Description = request.Description,
                Exercises   = request.Exercises
            },
                                 token);

            return(Ok());
        }