Example #1
0
        public async Task <IEnumerable <ExerciseViewModel> > GetAvailableExercises()
        {
            var CurrentUserId = _applicationUserService.GetCurrentUserAsync(User).Result.Id;
            var Exercises     = await _workoutService.GetAvailableExercisesAsync(CurrentUserId);

            return(Exercises.Select(e => new ExerciseViewModel(e)));
        }