public async Task <IEnumerable <ExerciseResource> > GetExercise() { string userId = GetUserId(); var exercises = await repository.GetListByUserId(userId); return(mapper.Map <List <Exercise>, List <ExerciseResource> > (exercises)); }
public async Task <IEnumerable <ExerciseResource> > GetExercise() { string userId = GetUserId(); var exercises = await repository.GetListByUserId(userId); return(mapper.Map <List <Exercise>, List <ExerciseResource> > (exercises)); }