Exemplo n.º 1
0
        public async Task <int> AddAsync(string name, string partOfBody)
        {
            var exercise = await _exerciseRepository.CheckIfExistsAsync(name);

            exercise = new Exercise(name, PartOfBody.GetPart(partOfBody));

            await _exerciseRepository.AddAsync(exercise);

            return(exercise.Id);
        }