public dynamic DeleteData(bu_userDataMap userDataMap) { if (dataFactoty.CreatDataService().DeleteData(userDataMap)) { return "OK"; } return "FAIL"; }
/// <summary> /// 删除资料信息 /// </summary> /// <param name="datum"></param> /// <returns></returns> public dynamic DeleteData(bu_userDataMap userDataMap) { try { db.BeginTransaction(); var sql = String.Format(@"update bu_userDataMap set IsEnable=0 where ID=@0 "); var result = db.Execute(sql, userDataMap.ID); db.CompleteTransaction(); return true; } catch (Exception) { return false; } return false; }