Ejemplo n.º 1
0
        public async Task <IEnumerable <WorkoutViewModel> > GetWorkouts()
        {
            var CurrentUserId = _applicationUserService.GetCurrentUserAsync(User).Result.Id;
            var Workouts      = await _workoutService.GetWorkoutsByUserAsync(CurrentUserId);

            return(Workouts.Select(e => new WorkoutViewModel(e, true)));
        }