Beispiel #1
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);
            }
        }