public ActionResult AddFAQ(FormCollection collection)
        {
            //ViewtQuestion model
            ViewtQuestion          model  = new ViewtQuestion();
            tQuestionServiceClient client = new tQuestionServiceClient();

            model.Uid                = user.Uid;
            model.QuestionTime       = DateTime.Now;
            model.State              = 1;
            model.BeFrom             = 1;
            model.IsFAQ              = false;
            model.UserName           = collection["UserName"];
            model.ContactInformation = collection["ContactInformation"];
            model.QuestionContent    = collection["QuestionContent"];
            model.TitleID            = int.Parse(collection["iType"]);
            model.Hot                = false;
            try
            {
                client.Add(model);
                return(Json(new { code = 0 }));
            }
            catch (Exception e)
            {
                return(Json(new { code = 1 }));
            }
        }
        public ActionResult AddFAQ(FormCollection collection)
        {
            //ViewtQuestion model
            ViewtQuestion          model  = new ViewtQuestion();
            tQuestionServiceClient client = new tQuestionServiceClient();

            model.Uid             = int.Parse(ConfigurationManager.AppSettings["BACK_POSTER"]);
            model.QuestionTime    = DateTime.Now;
            model.BeFrom          = 2;
            model.IsFAQ           = true;
            model.QuestionContent = collection["QuestionContent"];
            model.ReplyContent    = collection["ReplyContent"];
            model.TitleID         = int.Parse(collection["iType"]);
            if (collection["ReplyUid"] != null)
            {
                model.ReplyUid = int.Parse(collection["ReplyUid"]);
            }
            if (collection["Hot"].Contains("true"))
            {
                model.Hot = true;
            }
            else
            {
                model.Hot = false;
            }
            try
            {
                client.Add(model);
                return(Json(new { code = 0 }));
            }
            catch (Exception e)
            {
                return(Json(new { code = 1 }));
            }
        }