public ActionResult Edit(CardLevels level)
 {
     try
     {
         CardLevelsBLL db = new CardLevelsBLL();
         db.Edit(level, "CL_LevelName", "CL_NeedPoint", "CL_Point", "CL_Percent");
         db.SaveChanges();
         return Json(new { result = "ok" });
     }
     catch
     {
         return Json(new { result = "error" });
     }
 }
 public ActionResult Create(CardLevels level)
 {
     try
     {
         CardLevelsBLL db = new CardLevelsBLL();
         db.Add(level);
         db.SaveChanges();
         return Json(new { result = "ok" });
     }
     catch
     {
         return Json(new { result = "error" });
     }
 }
 public ActionResult Delete(int id)
 {
     try
     {
         CardLevelsBLL db = new CardLevelsBLL();
         CardLevels level = db.Find(id);
         db.Remove(level);
         db.SaveChanges();
         return Json(new { result = "ok" });
     }
     catch
     {
         return Json(new { result = "error" });
     }
 }