Пример #1
0
        public JObject Delete(JObject json)
        {
            var       ids           = JsonConvert.DeserializeObject <List <int> >(json["ids"].ToString());
            NoticeBLL noticeBll     = new NoticeBLL();
            var       deleteSuccess = noticeBll.Delete(ids);
            JObject   result        = new JObject();

            if (deleteSuccess == 1)
            {
                result["success"] = true;
            }
            else
            {
                result["errorMsg"] = "删除失败!";
            }
            return(result);
        }