Ejemplo n.º 1
0
        public JsonResult IsCheckLinkAdd(string title, string url, string desc)
        {
            link link = new link();

            link.title = title;
            link.url   = url;
            link.desc  = desc;
            var result = LinkBLL.IsCheckLinkAdd(link);

            if (result == 0)
            {
                return(Json(new { status = 0, data = "链接已存在,请重新添加!" }));
            }
            else
            {
                return(Json(new { status = 1, data = "添加成功!" }));
            }
        }