コード例 #1
0
 public async Task <ActionResult <IEnumerable <SubjectDto> > > GetAll()
 {
     return(await _subjectService.GetAllAsync().ToListAsync());
 }
コード例 #2
0
 public async Task <ActionResult <IEnumerable <CategoryDto> > > GetAll()
 => Ok(await _categoryService.GetAllAsync());
コード例 #3
0
 public async Task <ActionResult <IEnumerable <QuestionDto> > > GetAll()
 {
     return(await _questionService.GetAllAsync().ToListAsync());
 }
コード例 #4
0
ファイル: AttemptController.cs プロジェクト: Kha-Lik/QuizApp
 public async Task <ActionResult <IEnumerable <AttemptDto> > > GetAll()
 {
     return(await _attemptService.GetAllAsync().ToListAsync());
 }
コード例 #5
0
 public async Task <ActionResult <IEnumerable <ProductDto> > > GetAll()
 => Ok(await _productService.GetAllAsync());
コード例 #6
0
ファイル: TopicController.cs プロジェクト: Kha-Lik/QuizApp
 public async Task <ActionResult <IEnumerable <TopicDto> > > GetAll()
 {
     return(await _topicService.GetAllAsync().ToListAsync());
 }