public bool Delete(Base_Item data) { try { CommonDao.Delete(data); return true; } catch (Exception e) { Log.Error("字典类别删除时", e); return false; } }
/// <summary> /// 数据保存更新 /// </summary> /// <param name="data"></param> /// <param name="unitOfWork"></param> public bool SaveOrUpdate(Base_Item data, Core.IUnitOfWork unitOfWork = null) { try { CommonDao.SaveOrUpdate(data, unitOfWork); return true; } catch (Exception e) { Log.Error("字典类别删除时", e); return false; } }