Example #1
0
        private void BindQuestionData(int PageIndex)
        {
            int       RecordCount = 0;
            DataTable dt          = questionBll.GetList(PageIndex, AspNetPager.PageSize, ProductID, Common.ContentType.Product, out RecordCount);

            Repeater_Question.DataSource = dt;
            Repeater_Question.DataBind();

            AspNetPager.RecordCount = RecordCount;
        }
Example #2
0
        public string GetUserQuestionList(string userId, string type)
        {
            switch (type.ToUpper())
            {
            case "QUESTION":
                return(_javaScriptSerializer.Serialize(QuestionBll.GetList(userId)));

            case "ANSWER":
                return(_javaScriptSerializer.Serialize(QuestionBll.GetUserAnswerList(userId)));

            case "FAVOURITE":
                return(_javaScriptSerializer.Serialize(iMoocQA.Data.UserFavourite.GetUserFavourites(userId)));

            default:
                return(string.Empty);
            }
        }
Example #3
0
        public string List(int index, int number)
        {
            var collection = QuestionBll.GetList(index, number);

            return(_javaScriptSerializer.Serialize(collection));
        }