Engage.Survey.Entities.SurveyRepository.LoadQuestions C# (CSharp) Method

LoadQuestions() public method

Loads all of the questions for the given survey (based on its current definition)
public LoadQuestions ( int surveyId ) : IQueryable
surveyId int The ID of the survey.
return IQueryable
        public IQueryable<Question> LoadQuestions(int surveyId)
        {
            return from question in this.Context.Questions
                   join section in this.Context.Sections on question.SectionId equals section.SectionId
                   where section.SurveyId == surveyId
                   orderby question.RelativeOrder
                   select question;
        }