コード例 #1
0
        public List <QuestionBL> GetBySubcategoryId(int subcategoryId)
        {
            DALToBLMapper     poMapper       = new DALToBLMapper();
            List <Question>   questions      = DAL.SDK.Kit.Instance.Questions.GetQuestionsBySubcategoryId(subcategoryId);
            List <QuestionBL> mappedQuestion = poMapper.MapQuestionCollection(questions).ToList();

            return(mappedQuestion);
        }
コード例 #2
0
        public List <QuestionBL> GetByUserId(int userI)
        {
            DALToBLMapper     poMapper       = new DALToBLMapper();
            List <Question>   questions      = DAL.SDK.Kit.Instance.Questions.GetByUserId(userI);
            List <QuestionBL> mappedQuestion = poMapper.MapQuestionCollection(questions).ToList();

            return(mappedQuestion);
        }
コード例 #3
0
        public List <QuestionBL> ContributedBy(int userId)
        {
            DALToBLMapper     poMapper       = new DALToBLMapper();
            List <Question>   questions      = DAL.SDK.Kit.Instance.Questions.ContributedBy(userId);
            List <QuestionBL> mappedQuestion = poMapper.MapQuestionCollection(questions).ToList();

            return(mappedQuestion);
        }
コード例 #4
0
        public List <QuestionBL> GetAll()
        {
            DALToBLMapper     poMapper        = new DALToBLMapper();
            List <Question>   questions       = DAL.SDK.Kit.Instance.Questions.GetAll();
            List <QuestionBL> mappedQuestions = poMapper.MapQuestionCollection(questions).ToList();

            return(mappedQuestions);
        }
コード例 #5
0
        public List <QuestionBL> GetLatests(int nr)
        {
            DALToBLMapper   poMapper  = new DALToBLMapper();
            List <Question> questions = DAL.SDK.Kit.Instance.Questions.GetLatestQuestions(nr);

            for (int i = 0; i < questions.Count(); i++)
            {
                questions[i].Answers = DAL.SDK.Kit.Instance.Answers.GetAnswers(questions[i].Id);
                questions[i].Title   = questions[i].Title.GetLiteralAndNumericalFromString();
            }
            List <QuestionBL> mappedQuestion = poMapper.MapQuestionCollection(questions).ToList();

            return(mappedQuestion);
        }