public async Task <HttpResponseMessage> GetJustToBeSafePartOneNodes(string pathwayId) { return(_questionTransformer.AsQuestionWithAnswersList(await _questionService.GetJustToBeSafeQuestionsFirst(pathwayId)).AsHttpResponse()); }
public async Task <JsonResult <IEnumerable <QuestionWithAnswers> > > GetJustToBeSafePartOneNodes(string pathwayId) { var questionsWithAnswers = await _questionService.GetJustToBeSafeQuestionsFirst(pathwayId); return(Json(_questionTransformer.AsQuestionWithAnswersList(questionsWithAnswers))); }