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" });
     }
 }
示例#3
0
 /// <summary>
 /// 创建新的 CardLevels 对象。
 /// </summary>
 /// <param name="cL_ID">CL_ID 属性的初始值。</param>
 public static CardLevels CreateCardLevels(global::System.Int32 cL_ID)
 {
     CardLevels cardLevels = new CardLevels();
     cardLevels.CL_ID = cL_ID;
     return cardLevels;
 }