コード例 #1
0
        public async Task <IActionResult> GetExercises(Guid groupId)
        {
            var exercises = await _exerciseRepository.ByGroup(groupId);

            return(Ok(exercises.Select(x => new ExerciseApi {
                Id = x.Id, Name = x.Name, Note = x.Note
            })));
        }