public async Task <List <QuestionnaireDTO> > GetAll() { var questionnaireList = await _questionnaireRepository.GetAllQuestionsAsync(); if (questionnaireList == null) { throw new AppException("Not Found"); } return(_mapper.Map <List <QuestionnaireDTO> >(questionnaireList)); }