Esempio n. 1
0
 /// <summary>
 /// 删除
 /// </summary>
 /// <param name="ids"></param>
 /// <returns></returns>
 public JsonResult DeleteClass(string ids)
 {
     try
     {
         int[] id = ids.GetArray();
         if (id.Length > 0)
         {
             _classManager.DeleteTrainClass(id);
         }
         return(Json(new { result = 1, content = "删除成功" }, JsonRequestBehavior.AllowGet));
     }
     catch
     {
         return(Json(new { result = 0, content = "删除失败" }, JsonRequestBehavior.AllowGet));
     }
 }