Beispiel #1
0
        public async Task <IEnumerable <QuestionDto> > GetAllEntitiesAsync()
        {
            var entities = await _uow.QuestionRepository.GetAsync();

            return(ConvertService.ConvertToListAnswers(entities, _mapper));
        }
        public async Task <IEnumerable <QuestionDto> > GetAllEntitiesBySurveyIdAsync(int surveyId)
        {
            var entities = await _uow.QuestionRepository.GetAsync(o => o.SurveyId == surveyId);

            return(ConvertService.ConvertToListAnswers(entities, _mapper));
        }