public dynamic DeleteData(bu_userDataMap userDataMap)
 {
     if (dataFactoty.CreatDataService().DeleteData(userDataMap))
     {
         return "OK";
     }
     return "FAIL";
 }
Exemple #2
0
        /// <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;
        }