Beispiel #1
0
        // Ask Question
        public JsonResult PostQuestion(string question, string discription)
        {
            QuestionBL bl  = new QuestionBL();
            string     res = bl.InsertQuestion(question, discription);

            if (res == "1")
            {
                return(Json("Successfully Inserted!!", JsonRequestBehavior.AllowGet));
            }
            return(Json(res, JsonRequestBehavior.AllowGet));
        }