Ejemplo n.º 1
0
 /// <summary>
 /// 删除
 /// </summary>
 public ActionResult Delete(int id)
 {
     try
     {
         UsersBLL bll = new UsersBLL();
         Users u = bll.Find(id);
         u.U_Role = 4;
         bll.SaveChanges();
         return Json(new { result = "ok" }, JsonRequestBehavior.AllowGet);
     }
     catch
     {
         return Json(new { result = "error" }, JsonRequestBehavior.AllowGet);
     }
 }