public async Task <Activation> DeleteActivation(string exerciseId, string activationId) { var exercise = await _exercisesRepository.ReadOneAsync(exerciseId); if (exercise == null) { return(null); } var result = await _activationsRepository.DeleteOneAsync(activationId); if (result == null) { return(new Activation()); } return(result); }
public async Task <Activation> DeleteOneAsync(string id) { return(await _musclesRepository.DeleteOneAsync(id)); }