/// <summary> /// Retourne une liste de Levels /// </summary> /// <returns></returns> public List <FindAnswerDto> GetAnswers() { List <Answer> answers = AnswerRepository.FindAll(); List <FindAnswerDto> levelsDto = new List <FindAnswerDto>(); foreach (Answer answer in answers) { levelsDto.Add(TransformModelToDto(answer)); } return(levelsDto); }