Beispiel #1
0
        private string BatchDelete(HttpContext context)
        {
            string ids   = context.Request["ids"];
            string names = context.Request["names"];

            if (!string.IsNullOrEmpty(ids))
            {
                SysMenuBLL bll = new SysMenuBLL();
                if (bll.DeleteList(ids))
                {
                    return(JsonConvert.SerializeObject(new
                    {
                        success = 0,
                        msg = "删除成功"
                    }));
                }
                else
                {
                    return(JsonConvert.SerializeObject(new
                    {
                        success = 1,
                        msg = "删除失败"
                    }));
                }
            }
            return(JsonConvert.SerializeObject(new
            {
                success = 1,
                msg = "Id不存在"
            }));
        }