/// <summary> /// Permet de supprimer un Answer /// </summary> /// <param name="id"></param> public int Delete(int id) { ChoiceAnswerRepository choiceAnswerRepo = new ChoiceAnswerRepository(new QueryBuilder()); choiceAnswerRepo.DeleteByIdAnswer(id); return(this.AnswerRepository.Delete(id)); }
public AnswerServices(AnswerRepository answerRepository, ChoiceAnswerRepository choiceAnswerRepository) { AnswerRepository = answerRepository; ChoiceAnswerRepository = choiceAnswerRepository; }