Ejemplo n.º 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;
        }
Ejemplo n.º 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);
            }
        }
Ejemplo n.º 3
0
        public string List(int index, int number)
        {
            var collection = QuestionBll.GetList(index, number);

            return(_javaScriptSerializer.Serialize(collection));
        }