Exemplo n.º 1
0
        public async Task <IEnumerable <ServiceEntities.Question> > GetQuestionsInCategory(int id)
        {
            var providerEntities = await _categoryRepo.GetAsync(x => x.Where( o => o.Id == id).Select(o => o.Questions).FirstOrDefault()).ConfigureAwait(false);

            return(providerEntities.ToList().Select(_questionMapper.ToServiceEntity));
        }