Exemple #1
0
        public void ProcessRequest(HttpContext context)
        {
            List <Questionnaire> data = bllQuestion.GetSelectList(bllQuestion.WebsiteOwner, context.Request["type"]);
            var result = from p in data
                         select new
            {
                value = p.QuestionnaireID,
                name  = p.QuestionnaireName,
                count = bllQuestion.GetQuestionCount(p.QuestionnaireID)
            };

            apiResp.status = true;
            apiResp.result = result;
            bllQuestion.ContextResponse(context, apiResp);
        }