public async Task DeleteComponent(Guid id) { await _answerRepository.DeleteAnswersByComponentId(id); await _repository.DeleteComponent(id); }