示例#1
0
        public JsonResult AddQnA(string question, string answer)
        {
            string message = "";

            if (!String.IsNullOrEmpty(question))
            {
                return(Json(message, JsonRequestBehavior.AllowGet));
            }
            var result = _elastic.Create(question, answer);

            return(Json(result, JsonRequestBehavior.AllowGet));
        }