public async Task <Activation> CreateActivation(string exerciseId, Activation activationToCreate) { var exercise = await _exercisesRepository.ReadOneAsync(exerciseId); if (exercise == null) { return(null); } return(await _activationsRepository.CreateOneAsync(activationToCreate)); }
public async Task <Activation> CreateOneAsync(Activation muscleToCreate) { var createdExercise = await _musclesRepository.CreateOneAsync(muscleToCreate); return(createdExercise); }