Example #1
0
        public JsonResult SaveKnowledge(Business_KnowledgeBase_Information knowledgeBaseInfo, bool isEdit, string saveType)
        {
            var models = new ActionResultModel <string>()
            {
                isSuccess = false, respnseInfo = "0"
            };

            if (_draftLogic.IsExistKnowledge(knowledgeBaseInfo, isEdit))
            {
                models.respnseInfo = "2";//存在相同的
            }
            else
            {
                models.isSuccess   = _draftLogic.SaveKnowledge(knowledgeBaseInfo, isEdit, saveType);
                models.respnseInfo = models.isSuccess ? "1" : "0";
            }
            return(Json(models));
        }