자주 사용되는 메소드들
자주 사용되는 메소드들
자주 사용되는 메소드들
자주 사용되는 메소드들
public async Task <ActionResult <QuestionResponse> > GetQuestion(int id) { var question = await _context.Question.Where(x => x.Id == id).Include(b => b.answers).FirstOrDefaultAsync(); if (question == null) { return(NotFound()); } return(SurveyService.CreateQuestionResponse(question)); }