public bool CreateObjectEntryLog(Session session, BusinessObject businessObject) { try { ObjectEntryLog objectEntryLog = new ObjectEntryLog(session); objectEntryLog.LastUpdatedObjectTimeStamp = DateTime.Now; objectEntryLog.RowStatus = Constant.ROWSTATUS_ACTIVE; objectEntryLog.BusinessObjectId = businessObject; objectEntryLog.Save(); return(true); } catch (Exception) { return(false); } }
public bool CreateObjectEntryLog(Session session, Int64 businessObjectId) { try { BusinessObject businessObject = session.GetObjectByKey <BusinessObject>(businessObjectId); if (businessObject == null) { return(false); } ObjectEntryLog objectEntryLog = new ObjectEntryLog(session); objectEntryLog.LastUpdatedObjectTimeStamp = DateTime.Now; objectEntryLog.RowStatus = Constant.ROWSTATUS_ACTIVE; objectEntryLog.BusinessObjectId = businessObject; objectEntryLog.Save(); return(true); } catch (Exception) { return(false); } }