Esempio n. 1
0
        public async Task <IEnumerable <ExerciseResource> > GetExercise()
        {
            string userId    = GetUserId();
            var    exercises = await repository.GetListByUserId(userId);

            return(mapper.Map <List <Exercise>, List <ExerciseResource> > (exercises));
        }